Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001536/0.001536, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2833, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009079/0.2925, allocations: 6.485 MB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005169/0.2977, allocations: 2.636 MB / 417.9 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009755/0.2987, allocations: 23.94 kB / 417.9 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003495/0.3023, allocations: 1.271 MB / 419.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.3043, allocations: 0.5357 MB / 419.7 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002778/0.3071, allocations: 1.257 MB / 421 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.3089, allocations: 1.075 MB / 422 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/0.3104, allocations: 0.9021 MB / 422.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007052/0.3111, allocations: 450.3 kB / 423.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008302/0.3119, allocations: 0.5446 MB / 423.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.3121, allocations: 96 kB / 424 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009676/0.3131, allocations: 419.6 kB / 424.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.3133, allocations: 235.2 kB / 424.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004888/0.3138, allocations: 0.5208 MB / 425.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002144/0.316, allocations: 1.525 MB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.316, allocations: 0 / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.316, allocations: 4 kB / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.316, allocations: 0 / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004272/0.3203, allocations: 1.677 MB / 428.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3203, allocations: 8.031 kB / 428.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002446/0.3206, allocations: 171.4 kB / 428.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003268/0.3239, allocations: 495.8 kB / 429 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000746/0.3246, allocations: 0.5021 MB / 429.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.471e-05/0.3247, allocations: 86.23 kB / 429.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.3249, allocations: 112 kB / 429.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.3267, allocations: 0.9747 MB / 430.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/0.3268, allocations: 0 / 430.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.814e-05/0.3269, allocations: 47.98 kB / 430.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.3269, allocations: 28 kB / 430.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.3288, allocations: 0.9614 MB / 431.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00601/0.3348, allocations: 3.767 MB / 435.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.3368, allocations: 1.553 MB / 437.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007542/0.3376, allocations: 436.3 kB / 437.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001957/0.3378, allocations: 183.2 kB / 437.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008573/0.3386, allocations: 478.5 kB / 438.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 4.108e-06/0.3387, allocations: 0 / 438.1 MB, free: 3.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009002/0.3477, allocations: 4.023 MB / 442.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.652e-05/0.3478, allocations: 145.5 kB / 442.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004788/0.3483, allocations: 409.4 kB / 442.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.555e-05/0.3484, allocations: 53.7 kB / 442.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.3487, allocations: 440.9 kB / 443.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003208/0.349, allocations: 448.1 kB / 443.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3493, allocations: 202.9 kB / 443.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3495, allocations: 378.8 kB / 444.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007174/0.3502, allocations: 350.5 kB / 444.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008404/0.3511, allocations: 0.5429 MB / 445.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.3526, allocations: 0.9421 MB / 446 MB, free: 11.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3526, allocations: 0 / 446 MB, free: 11.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002606/0.3552, allocations: 1.398 MB / 447.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.3553, allocations: 8 kB / 447.4 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.3553, allocations: 4 kB / 447.4 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008953/0.3562, allocations: 353.6 kB / 447.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/0.3571, allocations: 203.7 kB / 448 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008192/0.3653, allocations: 8.496 MB / 456.5 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008141/0.3662, allocations: 47.97 kB / 456.5 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.733e-05/0.3663, allocations: 44 kB / 456.6 MB, free: 144 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005078/0.3668, allocations: 257.6 kB / 456.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.367, allocations: 83.59 kB / 456.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/0.3696, allocations: 1.301 MB / 458.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.3696, allocations: 12 kB / 458.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.3696, allocations: 11.98 kB / 458.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.3696, allocations: 11.91 kB / 458.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004345/0.374, allocations: 2.529 MB / 460.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.374, allocations: 4 kB / 460.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007329/0.3748, allocations: 151.8 kB / 460.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008341/0.3756, allocations: 334.2 kB / 461.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.633e-05/0.3757, allocations: 27.98 kB / 461.3 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007686/0.3834, allocations: 8.112 MB / 469.4 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.3835, allocations: 4 kB / 469.4 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.387, allocations: 1.829 MB / 471.2 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004528/0.3874, allocations: 220.5 kB / 471.4 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.3876, allocations: 32.16 kB / 471.5 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005296/0.3881, allocations: 43.92 kB / 471.5 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.3884, allocations: 104.8 kB / 471.6 MB, free: 368 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.3885, allocations: 39.98 kB / 471.6 MB, free: 328 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003592/0.3888, allocations: 275.2 kB / 471.9 MB, free: 52 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3888, allocations: 0 / 471.9 MB, free: 52 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00139/0.3902, allocations: 316.1 kB / 472.2 MB, free: 15.74 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003772/0.394, allocations: 2.446 MB / 474.7 MB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003075/0.3971, allocations: 1.623 MB / 476.3 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.3972, allocations: 1.062 kB / 476.3 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.399, allocations: 1.142 MB / 477.4 MB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.3998, allocations: 77.61 kB / 477.5 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.4128, allocations: 7.411 MB / 484.9 MB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007938/0.4137, allocations: 1.021 MB / 485.9 MB, free: 1.547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005039/0.4142, allocations: 106.2 kB / 486 MB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004727/0.4147, allocations: 351.3 kB / 486.4 MB, free: 1.098 MB / 398.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4147, allocations: 0 / 486.4 MB, free: 1.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05115/0.4658, allocations: 18.46 MB / 0.493 GB, free: 14.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.37/17.84, allocations: 9.516 kB / 0.493 GB, free: 14.8 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches