Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008473/0.0008473, allocations: 87.62 kB / 21.43 MB, free: 3.125 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004259/0.004259, allocations: 156.2 kB / 24.69 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9124/0.9124, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 3.938 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.031e-05, allocations: 2.281 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.1445/0.1445, allocations: 9.483 MB / 307.9 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007344/0.1518, allocations: 3.498 MB / 311.4 MB, free: 8.328 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003046/0.1549, allocations: 47.41 kB / 311.5 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0087/0.1636, allocations: 8.154 MB / 319.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006478/0.1701, allocations: 4.69 MB / 324.3 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.1724, allocations: 0.9423 MB / 325.2 MB, free: 3.059 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006261/0.1786, allocations: 5.415 MB / 330.7 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001042/0.1797, allocations: 0.5574 MB / 331.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005539/0.1852, allocations: 3.529 MB / 334.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005594/0.1908, allocations: 5.449 MB / 340.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008035/0.1916, allocations: 352 kB / 340.5 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009466/0.1926, allocations: 391.9 kB / 340.9 MB, free: 4.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.1937, allocations: 1.916 MB / 342.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.1953, allocations: 1.408 MB / 344.2 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005281/0.2006, allocations: 7.031 MB / 351.3 MB, free: 9.848 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2006, allocations: 4 kB / 351.3 MB, free: 9.844 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2006, allocations: 0 / 351.3 MB, free: 9.844 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002893/0.2009, allocations: 0 / 351.3 MB, free: 9.844 MB / 314.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.0101/0.211, allocations: 7.78 MB / 359.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.211, allocations: 11.98 kB / 359.1 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003633/0.2114, allocations: 287.6 kB / 359.4 MB, free: 1.668 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009082/0.2123, allocations: 0.8934 MB / 360.2 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003559/0.2159, allocations: 3.173 MB / 363.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-05/0.216, allocations: 160.5 kB / 363.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.2162, allocations: 204.3 kB / 363.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/0.2194, allocations: 2.241 MB / 366 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.515e-05/0.2194, allocations: 4 kB / 366 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.2196, allocations: 84 kB / 366.1 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.2196, allocations: 56 kB / 366.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002927/0.2225, allocations: 1.887 MB / 368 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01199/0.2345, allocations: 7.817 MB / 375.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/0.2376, allocations: 2.024 MB / 377.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002101/0.2397, allocations: 1.315 MB / 379.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.2398, allocations: 34.25 kB / 379.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001844/0.2417, allocations: 1.301 MB / 380.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=242): time 4.718e-06/0.2417, allocations: 0 / 380.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=367): time 0.04103/0.2827, allocations: 22.55 MB / 403.1 MB, free: 5.398 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01868/0.3014, allocations: 13.12 MB / 416.2 MB, free: 7.949 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01481/0.3162, allocations: 14.93 MB / 431.1 MB, free: 9.086 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006192/0.3168, allocations: 85.7 kB / 431.2 MB, free: 8.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/0.3193, allocations: 3.739 MB / 435 MB, free: 5.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/0.3206, allocations: 1.259 MB / 436.2 MB, free: 3.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007942/0.3214, allocations: 0.5197 MB / 436.7 MB, free: 3.453 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.3215, allocations: 301.1 kB / 437 MB, free: 3.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002224/0.3237, allocations: 1.252 MB / 438.3 MB, free: 1.902 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.3257, allocations: 1.763 MB / 440 MB, free: 28 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.3294, allocations: 2.998 MB / 443 MB, free: 12.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.3294, allocations: 0 / 443 MB, free: 12.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.007424/0.3368, allocations: 5.216 MB / 448.3 MB, free: 7.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.3368, allocations: 8 kB / 448.3 MB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.3369, allocations: 4 kB / 448.3 MB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002856/0.3397, allocations: 1.382 MB / 449.6 MB, free: 6.289 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.3412, allocations: 0.5422 MB / 450.2 MB, free: 5.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1621/0.5033, allocations: 22.68 MB / 472.9 MB, free: 129.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5056, allocations: 133.4 kB / 473 MB, free: 129.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/0.5059, allocations: 113.6 kB / 473.1 MB, free: 129.5 MB / 426.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.003399/0.5093, allocations: 2.188 MB / 475.3 MB, free: 129.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000948/0.5102, allocations: 0.8576 MB / 476.2 MB, free: 129.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007843/0.5181, allocations: 5.282 MB / 481.4 MB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.662e-05/0.5181, allocations: 35.72 kB / 481.5 MB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.436e-05/0.5181, allocations: 6.344 kB / 481.5 MB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/0.5181, allocations: 23.25 kB / 481.5 MB, free: 129.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.5326, allocations: 10.14 MB / 491.6 MB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.5326, allocations: 1.219 kB / 491.6 MB, free: 126.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.5339, allocations: 474.1 kB / 492.1 MB, free: 126.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002695/0.5366, allocations: 1.341 MB / 493.5 MB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/0.5368, allocations: 73.97 kB / 493.5 MB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/0.5494, allocations: 20.6 MB / 0.5021 GB, free: 109.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.012/0.5614, allocations: 11.43 MB / 0.5132 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007691/0.5691, allocations: 6.976 MB / 0.52 GB, free: 93.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.5699, allocations: 0.7312 MB / 0.5208 GB, free: 93.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003539/0.5703, allocations: 64.31 kB / 0.5208 GB, free: 93.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.5713, allocations: 119.8 kB / 0.5209 GB, free: 92.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004755/0.5718, allocations: 279.2 kB / 0.5212 GB, free: 92.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.5719, allocations: 99.97 kB / 0.5213 GB, free: 92.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007054/0.579, allocations: 11.14 MB / 0.5322 GB, free: 81.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.579, allocations: 8 kB / 0.5322 GB, free: 81.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002257/0.5812, allocations: 1.077 MB / 0.5332 GB, free: 80.39 MB / 426.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.008025/0.5892, allocations: 7.981 MB / 0.541 GB, free: 72.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004898/0.5941, allocations: 4.633 MB / 0.5455 GB, free: 67.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5941, allocations: 0 / 0.5455 GB, free: 67.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.597, allocations: 3.163 MB / 0.5486 GB, free: 64.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.5989, allocations: 0.5423 MB / 0.5492 GB, free: 63.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05641/0.6553, allocations: 55.85 MB / 0.6037 GB, free: 7.484 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.6576, allocations: 3.538 MB / 0.6072 GB, free: 3.895 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001048/0.6587, allocations: 308.9 kB / 0.6075 GB, free: 3.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/0.6604, allocations: 3.226 MB / 0.6106 GB, free: 372 kB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/0.6604, allocations: 0 / 0.6106 GB, free: 372 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2899/0.9503, allocations: 144.3 MB / 0.7515 GB, free: 32.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.23/22.18, allocations: 3.906 kB / 0.7515 GB, free: 32.76 MB / 442.7 MB " [Timeout remaining time 638] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 25.0494584152475]