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.001123/0.001123, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001154/0.001154, allocations: 194.9 kB / 18 MB, free: 5.172 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3042, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic): time 0.01231/0.3166, allocations: 11.11 MB / 411.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007594/0.3242, allocations: 3.284 MB / 414.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00242/0.3267, allocations: 39.88 kB / 414.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.3284, allocations: 0.6832 MB / 415.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003419/0.3319, allocations: 0.9077 MB / 416.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002282/0.3342, allocations: 0.9382 MB / 417.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004754/0.339, allocations: 3.451 MB / 420.6 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.3406, allocations: 0.8905 MB / 421.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.3429, allocations: 1.296 MB / 422.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.3451, allocations: 1.506 MB / 424.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007585/0.3459, allocations: 355.9 kB / 424.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009072/0.3468, allocations: 376 kB / 425.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005935/0.3474, allocations: 0.7087 MB / 425.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001856/0.3493, allocations: 1.477 MB / 427.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005245/0.3546, allocations: 4.276 MB / 431.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3546, allocations: 0 / 431.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3546, allocations: 0 / 431.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001172/0.3547, allocations: 4 kB / 431.5 MB, free: 9.371 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.009311/0.3641, allocations: 3.198 MB / 434.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.184e-05/0.3642, allocations: 8.031 kB / 434.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005595/0.3647, allocations: 291.6 kB / 435 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008262/0.3656, allocations: 315 kB / 435.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.369, allocations: 1.424 MB / 436.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.3693, allocations: 156.5 kB / 436.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005201/0.3698, allocations: 215.8 kB / 437.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00451/0.3743, allocations: 1.885 MB / 439 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/0.3744, allocations: 7.938 kB / 439 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.3746, allocations: 88 kB / 439.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.829e-05/0.3747, allocations: 48 kB / 439.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004392/0.3791, allocations: 1.906 MB / 441 MB, free: 15.64 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.01387/0.393, allocations: 7.392 MB / 448.4 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003691/0.3967, allocations: 2.289 MB / 450.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00279/0.3995, allocations: 1.401 MB / 452.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.3996, allocations: 37.97 kB / 452.2 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.3997, allocations: 56.56 kB / 452.2 MB, free: 4.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 4.308e-06/0.3997, allocations: 0 / 452.2 MB, free: 4.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=351): time 0.06973/0.4694, allocations: 17.65 MB / 469.9 MB, free: 2.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.4697, allocations: 86.17 kB / 469.9 MB, free: 2.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004764/0.4744, allocations: 1.848 MB / 471.8 MB, free: 344 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001187/0.4757, allocations: 85.7 kB / 471.9 MB, free: 252 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.4771, allocations: 0.9949 MB / 472.9 MB, free: 15.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002335/0.4794, allocations: 1.216 MB / 474.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/0.4809, allocations: 499.5 kB / 474.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4811, allocations: 309.1 kB / 474.9 MB, free: 13.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003979/0.4851, allocations: 1.217 MB / 476.1 MB, free: 12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003545/0.4887, allocations: 1.525 MB / 477.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005557/0.4942, allocations: 2.885 MB / 480.5 MB, free: 7.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.4943, allocations: 0 / 480.5 MB, free: 7.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01041/0.5047, allocations: 4.456 MB / 485 MB, free: 2.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.5048, allocations: 8 kB / 485 MB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.5048, allocations: 8 kB / 485 MB, free: 2.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005268/0.5101, allocations: 1.326 MB / 486.3 MB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.5129, allocations: 0.5266 MB / 486.8 MB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02738/0.5403, allocations: 20.61 MB / 0.4955 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0026/0.543, allocations: 107.9 kB / 0.4956 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/0.5433, allocations: 108 kB / 0.4957 GB, free: 11.25 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.001345/0.5446, allocations: 0.5849 MB / 0.4963 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004728/0.5451, allocations: 262.3 kB / 0.4966 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/0.5552, allocations: 4.396 MB / 0.5009 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.397e-05/0.5553, allocations: 39.94 kB / 0.5009 GB, free: 5.902 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.5553, allocations: 8 kB / 0.5009 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.864e-05/0.5554, allocations: 15.94 kB / 0.5009 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/0.5729, allocations: 8.367 MB / 0.5091 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.5729, allocations: 0 / 0.5091 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/0.5755, allocations: 459.3 kB / 0.5095 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005036/0.5805, allocations: 1.263 MB / 0.5108 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003749/0.5809, allocations: 67.97 kB / 0.5108 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02494/0.6059, allocations: 19.21 MB / 0.5296 GB, free: 7.355 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6059, allocations: 7.938 kB / 0.5296 GB, free: 7.348 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01369/0.6196, allocations: 6.118 MB / 0.5356 GB, free: 1.109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001716/0.6214, allocations: 0.628 MB / 0.5362 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/0.6219, allocations: 64 kB / 0.5362 GB, free: 408 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/0.6237, allocations: 107.9 kB / 0.5363 GB, free: 300 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006305/0.6243, allocations: 254.8 kB / 0.5366 GB, free: 44 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2339/0.8583, allocations: 86.55 kB / 0.5367 GB, free: 129.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002612/0.8609, allocations: 1.288 MB / 0.5379 GB, free: 129.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.8609, allocations: 0.5625 kB / 0.5379 GB, free: 129.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003696/0.8646, allocations: 0.8672 MB / 0.5388 GB, free: 129.6 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.01271/0.8774, allocations: 7.003 MB / 0.5456 GB, free: 127.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006934/0.8843, allocations: 4.464 MB / 0.55 GB, free: 125.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.8844, allocations: 3.094 kB / 0.55 GB, free: 125.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003999/0.8884, allocations: 2.982 MB / 0.5529 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.8904, allocations: 389 kB / 0.5533 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04079/0.9312, allocations: 23.54 MB / 0.5763 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001084/0.9323, allocations: 1.706 MB / 0.5779 GB, free: 100.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001522/0.9338, allocations: 292.1 kB / 0.5782 GB, free: 99.98 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/0.9351, allocations: 1.046 MB / 0.5792 GB, free: 98.95 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.9351, allocations: 4 kB / 0.5792 GB, free: 98.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1216/1.057, allocations: 76.2 MB / 0.6536 GB, free: 23.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.48/20.53, allocations: 14.28 kB / 0.6537 GB, free: 23.27 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