Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.0012, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 198 kB / 18.73 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.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2809, allocations: 50.55 MB / 408.8 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01362/0.2945, allocations: 11.39 MB / 420.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008387/0.303, allocations: 3.861 MB / 424 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002722/0.3057, allocations: 39.88 kB / 424 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008483/0.3142, allocations: 8.155 MB / 432.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007743/0.3221, allocations: 4.721 MB / 436.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003111/0.3252, allocations: 0.9205 MB / 437.8 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008334/0.3336, allocations: 5.413 MB / 443.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00198/0.3356, allocations: 0.9063 MB / 444.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006027/0.3416, allocations: 2.903 MB / 447.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006868/0.3485, allocations: 5.17 MB / 452.2 MB, free: 6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.35, allocations: 360 kB / 452.6 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.3516, allocations: 400 kB / 453 MB, free: 5.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002062/0.3537, allocations: 1.892 MB / 454.9 MB, free: 3.352 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004324/0.3581, allocations: 2.842 MB / 457.7 MB, free: 500 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.3682, allocations: 7.426 MB / 465.1 MB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.3682, allocations: 0 / 465.1 MB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3682, allocations: 4 kB / 465.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002871/0.3685, allocations: 0 / 465.1 MB, free: 9.023 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01762/0.3861, allocations: 8.039 MB / 473.2 MB, free: 0.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.3862, allocations: 8.031 kB / 473.2 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009674/0.3872, allocations: 291.7 kB / 473.5 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002453/0.3897, allocations: 0.9519 MB / 474.4 MB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005788/0.3955, allocations: 3.309 MB / 477.7 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.3957, allocations: 160.2 kB / 477.9 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006317/0.3963, allocations: 208 kB / 478.1 MB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005361/0.4017, allocations: 2.089 MB / 480.2 MB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.914e-05/0.4018, allocations: 11.94 kB / 480.2 MB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.4022, allocations: 88 kB / 480.3 MB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.534e-05/0.4022, allocations: 52 kB / 480.3 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004344/0.4066, allocations: 1.844 MB / 482.2 MB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.4244, allocations: 8.986 MB / 491.2 MB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/0.4284, allocations: 2.321 MB / 493.5 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00279/0.4312, allocations: 1.377 MB / 494.9 MB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00016/0.4314, allocations: 42.27 kB / 494.9 MB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00211/0.4335, allocations: 1.132 MB / 496 MB, free: 9.547 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.609e-06/0.4336, allocations: 0 / 496 MB, free: 9.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.07115/0.5047, allocations: 22.85 MB / 0.5067 GB, free: 2.395 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03206/0.5368, allocations: 13.73 MB / 0.5201 GB, free: 4.285 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0201/0.557, allocations: 15.03 MB / 0.5348 GB, free: 5.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006515/0.5577, allocations: 85.7 kB / 0.5349 GB, free: 5.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004577/0.5622, allocations: 3.802 MB / 0.5386 GB, free: 1.352 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001757/0.564, allocations: 1.278 MB / 0.5398 GB, free: 64 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2322/0.7962, allocations: 0.5164 MB / 0.5404 GB, free: 120.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.808e-05/0.7963, allocations: 305.4 kB / 0.5406 GB, free: 120.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/0.7992, allocations: 1.228 MB / 0.5418 GB, free: 120.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/0.8017, allocations: 1.609 MB / 0.5434 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004194/0.8059, allocations: 2.968 MB / 0.5463 GB, free: 120 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.806, allocations: 0.8125 kB / 0.5463 GB, free: 120 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01038/0.8163, allocations: 5.25 MB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.8164, allocations: 3.781 kB / 0.5514 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.8164, allocations: 12.8 kB / 0.5515 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005337/0.8218, allocations: 1.407 MB / 0.5528 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/0.8244, allocations: 0.5311 MB / 0.5533 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/0.8473, allocations: 24.05 MB / 0.5768 GB, free: 95.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003348/0.8506, allocations: 113.2 kB / 0.5769 GB, free: 95.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004058/0.8511, allocations: 117.1 kB / 0.5771 GB, free: 95.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,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 (313): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.002855/0.8539, allocations: 2.197 MB / 0.5792 GB, free: 93.06 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008745/0.8548, allocations: 0.8769 MB / 0.5801 GB, free: 92.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009491/0.8643, allocations: 5.195 MB / 0.5851 GB, free: 87.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.623e-05/0.8644, allocations: 36.14 kB / 0.5852 GB, free: 87.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.8644, allocations: 12 kB / 0.5852 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.913e-05/0.8644, allocations: 23.91 kB / 0.5852 GB, free: 87.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/0.8818, allocations: 11.09 MB / 0.596 GB, free: 76.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.8818, allocations: 4.031 kB / 0.596 GB, free: 76.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002281/0.8841, allocations: 451.4 kB / 0.5965 GB, free: 75.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005031/0.8892, allocations: 1.342 MB / 0.5978 GB, free: 74.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004365/0.8896, allocations: 75.97 kB / 0.5978 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02048/0.9101, allocations: 21.94 MB / 0.6193 GB, free: 51.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02144/0.9316, allocations: 12.03 MB / 0.631 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/0.9435, allocations: 6.943 MB / 0.6378 GB, free: 31.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/0.9449, allocations: 0.8116 MB / 0.6386 GB, free: 30.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007424/0.9457, allocations: 64 kB / 0.6387 GB, free: 30.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/0.9478, allocations: 104 kB / 0.6388 GB, free: 30.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006781/0.9485, allocations: 263.4 kB / 0.639 GB, free: 30.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/0.9487, allocations: 95.97 kB / 0.6391 GB, free: 30.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009542/0.9582, allocations: 11.22 MB / 0.6501 GB, free: 19.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.9583, allocations: 0 / 0.6501 GB, free: 19.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004449/0.9627, allocations: 1.104 MB / 0.6511 GB, free: 18.04 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01293/0.9757, allocations: 7.929 MB / 0.6589 GB, free: 10.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006931/0.9826, allocations: 4.774 MB / 0.6635 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.9827, allocations: 0 / 0.6635 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004412/0.9871, allocations: 3.277 MB / 0.6667 GB, free: 1.879 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/0.9905, allocations: 0.5672 MB / 0.6673 GB, free: 1.312 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1169/1.107, allocations: 56.4 MB / 0.7224 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006546/1.114, allocations: 4.05 MB / 0.7263 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002199/1.116, allocations: 313.5 kB / 0.7266 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004266/1.121, allocations: 3.276 MB / 0.7298 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of SimCode: time 2.224e-06/1.121, allocations: 4 kB / 0.7298 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5065/1.627, allocations: 144.4 MB / 0.8708 GB, free: 76.88 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.15/92.78, allocations: 1.797 kB / 0.8708 GB, free: 76.88 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches