Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 110 kB / 17.06 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 197.4 kB / 18 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 51.86 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3078, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01396/0.3218, allocations: 11.1 MB / 411.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007234/0.329, allocations: 3.272 MB / 414.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.3313, allocations: 43.81 kB / 414.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.3329, allocations: 0.6832 MB / 415.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002804/0.3357, allocations: 0.8959 MB / 416.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.3379, allocations: 0.9322 MB / 417.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004952/0.3428, allocations: 3.459 MB / 420.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.3444, allocations: 0.8866 MB / 421.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.3468, allocations: 1.281 MB / 422.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002337/0.3492, allocations: 1.506 MB / 424.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005338/0.3497, allocations: 352 kB / 424.6 MB, free: 288 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007428/0.3505, allocations: 388 kB / 425 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006703/0.3511, allocations: 0.7086 MB / 425.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.353, allocations: 1.481 MB / 427.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005105/0.3581, allocations: 4.272 MB / 431.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3581, allocations: 0 / 431.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3581, allocations: 0 / 431.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.3582, allocations: 0 / 431.5 MB, free: 9.418 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: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.008052/0.3663, allocations: 3.194 MB / 434.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3664, allocations: 15.89 kB / 434.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003847/0.3668, allocations: 295.5 kB / 435 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/0.3673, allocations: 303 kB / 435.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.37, allocations: 1.428 MB / 436.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.3702, allocations: 156.5 kB / 436.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/0.3705, allocations: 211.9 kB / 437.1 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00388/0.3744, allocations: 1.893 MB / 439 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.485e-05/0.3745, allocations: 7.953 kB / 439 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/0.3747, allocations: 80 kB / 439 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.374e-05/0.3747, allocations: 52 kB / 439.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004193/0.3789, allocations: 1.91 MB / 441 MB, free: 15.68 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.3923, allocations: 7.392 MB / 448.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004085/0.3964, allocations: 2.274 MB / 450.7 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003098/0.3996, allocations: 1.405 MB / 452.1 MB, free: 4.293 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.3997, allocations: 45.91 kB / 452.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.878e-05/0.3998, allocations: 56.56 kB / 452.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 4.558e-06/0.3998, allocations: 4 kB / 452.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=351): time 0.064/0.4638, allocations: 17.66 MB / 469.8 MB, free: 2.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.464, allocations: 86.17 kB / 469.9 MB, free: 2.219 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002916/0.4669, allocations: 1.844 MB / 471.8 MB, free: 380 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005411/0.4674, allocations: 81.7 kB / 471.8 MB, free: 292 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.4687, allocations: 0.991 MB / 472.8 MB, free: 15.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.47, allocations: 1.216 MB / 474.1 MB, free: 14.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009289/0.471, allocations: 0.4917 MB / 474.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4711, allocations: 305.1 kB / 474.8 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.4738, allocations: 1.217 MB / 476.1 MB, free: 12.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00288/0.4767, allocations: 1.529 MB / 477.6 MB, free: 10.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00571/0.4824, allocations: 2.878 MB / 480.5 MB, free: 7.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.4824, allocations: 4 kB / 480.5 MB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01109/0.4935, allocations: 4.46 MB / 484.9 MB, free: 2.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.4936, allocations: 8 kB / 484.9 MB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.4936, allocations: 8 kB / 484.9 MB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005588/0.4992, allocations: 1.334 MB / 486.3 MB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/0.5022, allocations: 0.5188 MB / 486.8 MB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0305/0.5328, allocations: 20.6 MB / 0.4955 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/0.5355, allocations: 115.9 kB / 0.4956 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/0.5359, allocations: 104 kB / 0.4957 GB, free: 11.3 MB / 430.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: 4 (simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,50), (2,43)} Notification: Performance of prepare postOptimizeDAE: time 0.001434/0.5374, allocations: 0.5794 MB / 0.4963 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005436/0.5379, allocations: 266.3 kB / 0.4965 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/0.5496, allocations: 4.403 MB / 0.5008 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.025e-05/0.5497, allocations: 35.94 kB / 0.5009 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5497, allocations: 4 kB / 0.5009 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.274e-05/0.5497, allocations: 15.94 kB / 0.5009 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01917/0.5689, allocations: 8.375 MB / 0.5091 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/0.569, allocations: 8.281 kB / 0.5091 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/0.5716, allocations: 451.4 kB / 0.5095 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005405/0.577, allocations: 1.267 MB / 0.5107 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004173/0.5775, allocations: 67.98 kB / 0.5108 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02875/0.6062, allocations: 19.21 MB / 0.5296 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6063, allocations: 0 / 0.5296 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/0.6211, allocations: 6.11 MB / 0.5355 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/0.6226, allocations: 0.628 MB / 0.5361 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003819/0.623, allocations: 63.98 kB / 0.5362 GB, free: 460 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/0.6248, allocations: 116 kB / 0.5363 GB, free: 344 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007254/0.6256, allocations: 254.7 kB / 0.5366 GB, free: 88 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2078/0.8333, allocations: 89.06 kB / 0.5366 GB, free: 129.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002629/0.836, allocations: 1.286 MB / 0.5379 GB, free: 129.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.836, allocations: 0.6562 kB / 0.5379 GB, free: 129.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00439/0.8404, allocations: 0.8697 MB / 0.5387 GB, free: 129.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (advancedSolenoid.coil1.i,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleSolenoid.coil.i,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,41), (3,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01323/0.8537, allocations: 7.011 MB / 0.5456 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007413/0.8611, allocations: 4.458 MB / 0.5499 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.8612, allocations: 3.875 kB / 0.5499 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004333/0.8655, allocations: 2.986 MB / 0.5529 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.8676, allocations: 386.8 kB / 0.5532 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03817/0.9057, allocations: 23.54 MB / 0.5762 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.9069, allocations: 1.706 MB / 0.5779 GB, free: 100.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001516/0.9084, allocations: 296.1 kB / 0.5782 GB, free: 100 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/0.9096, allocations: 1.046 MB / 0.5792 GB, free: 98.96 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.9096, allocations: 0 / 0.5792 GB, free: 98.96 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1524/1.062, allocations: 76.2 MB / 0.6536 GB, free: 23.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.89/20.96, allocations: 18.22 kB / 0.6536 GB, free: 23.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonQuasiStatic/ComparisonQuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches