Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008937/0.0008937, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007921/0.0007921, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8911/0.8911, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.983e-06/6.983e-06, allocations: 0 / 318.4 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.902e-05, allocations: 2.281 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.00751/0.007529, allocations: 9.595 MB / 328 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003662/0.01119, allocations: 3.607 MB / 331.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004524/0.01164, allocations: 43.81 kB / 331.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004536/0.01618, allocations: 8.153 MB / 339.8 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002874/0.01905, allocations: 4.685 MB / 344.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.02032, allocations: 0.9583 MB / 345.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00276/0.02308, allocations: 5.408 MB / 350.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005447/0.02363, allocations: 0.5628 MB / 351.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002233/0.02586, allocations: 3.533 MB / 355 MB, free: 1.703 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003288/0.02915, allocations: 5.441 MB / 360.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002833/0.02943, allocations: 352 kB / 360.8 MB, free: 11.9 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.02983, allocations: 395.9 kB / 361.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007516/0.03058, allocations: 1.916 MB / 363.1 MB, free: 9.586 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007713/0.03135, allocations: 1.404 MB / 364.5 MB, free: 8.176 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003891/0.03524, allocations: 7.031 MB / 371.5 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.03525, allocations: 0 / 371.5 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.03525, allocations: 0 / 371.5 MB, free: 1.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.232e-05/0.0353, allocations: 0 / 371.5 MB, free: 1.121 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.007124/0.04242, allocations: 7.773 MB / 379.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.04247, allocations: 8.922 kB / 379.3 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002464/0.04272, allocations: 291.6 kB / 379.6 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005983/0.04331, allocations: 0.8933 MB / 380.5 MB, free: 8.051 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002763/0.04608, allocations: 3.169 MB / 383.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-05/0.04617, allocations: 164.5 kB / 383.8 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.04636, allocations: 208.3 kB / 384 MB, free: 4.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002464/0.04883, allocations: 2.245 MB / 386.2 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/0.04887, allocations: 4 kB / 386.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.04899, allocations: 80 kB / 386.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.04902, allocations: 48 kB / 386.4 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002664/0.05168, allocations: 1.899 MB / 388.3 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007989/0.05967, allocations: 7.815 MB / 396.1 MB, free: 8.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.06189, allocations: 2.019 MB / 398.1 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.06344, allocations: 1.319 MB / 399.4 MB, free: 4.773 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.645e-05/0.06353, allocations: 38.23 kB / 399.5 MB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.06482, allocations: 1.293 MB / 400.7 MB, free: 3.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 3.477e-06/0.06483, allocations: 0 / 400.7 MB, free: 3.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.03477/0.0996, allocations: 22.56 MB / 423.3 MB, free: 12.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01677/0.1164, allocations: 13.12 MB / 436.4 MB, free: 15.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01053/0.1269, allocations: 14.93 MB / 451.4 MB, free: 344 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003742/0.1273, allocations: 85.7 kB / 451.4 MB, free: 252 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1603/0.2876, allocations: 3.739 MB / 455.2 MB, free: 117.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001062/0.2887, allocations: 1.258 MB / 456.4 MB, free: 117.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008067/0.2895, allocations: 0.5122 MB / 456.9 MB, free: 116.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.003e-05/0.2895, allocations: 302.3 kB / 457.2 MB, free: 116.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/0.2911, allocations: 1.259 MB / 458.5 MB, free: 116.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.2929, allocations: 1.749 MB / 460.2 MB, free: 115.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003111/0.296, allocations: 3.01 MB / 463.3 MB, free: 113.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.296, allocations: 0.7812 kB / 463.3 MB, free: 113.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.00595/0.3019, allocations: 5.208 MB / 468.5 MB, free: 110.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.302, allocations: 14.91 kB / 468.5 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.302, allocations: 4 kB / 468.5 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002838/0.3048, allocations: 1.392 MB / 469.9 MB, free: 109.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.306, allocations: 0.5409 MB / 470.4 MB, free: 108.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.3197, allocations: 22.68 MB / 493.1 MB, free: 85.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.3212, allocations: 126 kB / 493.2 MB, free: 85.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.3214, allocations: 112 kB / 493.3 MB, free: 85.17 MB / 410.7 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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.002143/0.3235, allocations: 2.194 MB / 495.5 MB, free: 82.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.324, allocations: 0.8575 MB / 496.4 MB, free: 82.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005874/0.3298, allocations: 5.274 MB / 0.4899 GB, free: 76.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.3299, allocations: 42.44 kB / 0.4899 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.3299, allocations: 11.98 kB / 0.49 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.3299, allocations: 19.94 kB / 0.49 GB, free: 76.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0098/0.3397, allocations: 10.14 MB / 0.4999 GB, free: 66.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3397, allocations: 0 / 0.4999 GB, free: 66.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.3408, allocations: 467.3 kB / 0.5003 GB, free: 66.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.3431, allocations: 1.324 MB / 0.5016 GB, free: 64.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.3432, allocations: 79.97 kB / 0.5017 GB, free: 64.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.3552, allocations: 20.61 MB / 0.5218 GB, free: 43.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01225/0.3674, allocations: 11.43 MB / 0.533 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007642/0.375, allocations: 6.975 MB / 0.5398 GB, free: 24.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007254/0.3758, allocations: 0.7233 MB / 0.5405 GB, free: 23.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/0.3761, allocations: 79.94 kB / 0.5406 GB, free: 23.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.3771, allocations: 103.9 kB / 0.5407 GB, free: 23.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004769/0.3776, allocations: 279.2 kB / 0.5409 GB, free: 23.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.3777, allocations: 98.27 kB / 0.541 GB, free: 23.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006179/0.3839, allocations: 11.14 MB / 0.5519 GB, free: 12.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3839, allocations: 7.938 kB / 0.5519 GB, free: 12.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002518/0.3864, allocations: 1.086 MB / 0.553 GB, free: 10.93 MB / 410.7 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 245 * 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.008725/0.3951, allocations: 7.99 MB / 0.5608 GB, free: 3.039 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005611/0.4008, allocations: 4.649 MB / 0.5653 GB, free: 14.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4008, allocations: 0 / 0.5653 GB, free: 14.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003256/0.404, allocations: 3.155 MB / 0.5684 GB, free: 11.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.406, allocations: 0.548 MB / 0.5689 GB, free: 10.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2095/0.6154, allocations: 55.84 MB / 0.6235 GB, free: 139.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002176/0.6176, allocations: 3.533 MB / 0.6269 GB, free: 139.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009725/0.6186, allocations: 305.6 kB / 0.6272 GB, free: 139.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/0.6205, allocations: 3.232 MB / 0.6304 GB, free: 137.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6205, allocations: 0 / 0.6304 GB, free: 137.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1391/0.7596, allocations: 144.3 MB / 0.7713 GB, free: 292 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/19.39, allocations: 3.938 kB / 0.7713 GB, free: 288 kB / 458.7 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.442275254055858]