Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00186/0.00186, allocations: 103.6 kB / 21.19 MB, free: 0.5156 MB / 14.72 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.002287/0.002287, allocations: 209.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5545,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 55.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2315, allocations: 53.36 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01278/0.2443, allocations: 9.861 MB / 442.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008306/0.2526, allocations: 3.803 MB / 446 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002933/0.2556, allocations: 43.75 kB / 446 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009675/0.2652, allocations: 8.147 MB / 454.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007084/0.2723, allocations: 4.737 MB / 458.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002548/0.2749, allocations: 0.9283 MB / 459.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007024/0.2819, allocations: 5.405 MB / 465.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.2833, allocations: 0.5515 MB / 465.8 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004462/0.2877, allocations: 2.93 MB / 468.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007495/0.2952, allocations: 5.672 MB / 474.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001066/0.2963, allocations: 360 kB / 474.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001392/0.2977, allocations: 408 kB / 475.2 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002045/0.2997, allocations: 1.888 MB / 477 MB, free: 9.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003028/0.3028, allocations: 2.074 MB / 479.1 MB, free: 7.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007923/0.3107, allocations: 7.524 MB / 486.6 MB, free: 220 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3107, allocations: 0 / 486.6 MB, free: 220 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3107, allocations: 0 / 486.6 MB, free: 220 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001505/0.3109, allocations: 0 / 486.6 MB, free: 220 kB / 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.01243/0.3233, allocations: 7.956 MB / 494.6 MB, free: 8.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3233, allocations: 12.03 kB / 494.6 MB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.325, allocations: 0.948 MB / 495.6 MB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004744/0.3297, allocations: 3.237 MB / 498.8 MB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.3299, allocations: 160.1 kB / 499 MB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/0.3302, allocations: 208 kB / 499.2 MB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004112/0.3343, allocations: 2.226 MB / 0.4896 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/0.3344, allocations: 3.953 kB / 0.4896 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/0.3346, allocations: 88 kB / 0.4897 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.55e-05/0.3346, allocations: 51.98 kB / 0.4898 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003758/0.3384, allocations: 1.848 MB / 0.4916 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01456/0.353, allocations: 7.569 MB / 0.499 GB, free: 7.547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00379/0.3567, allocations: 2.031 MB / 0.5009 GB, free: 5.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002692/0.3594, allocations: 1.272 MB / 0.5022 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.3596, allocations: 34.3 kB / 0.5022 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002099/0.3617, allocations: 1.262 MB / 0.5035 GB, free: 2.855 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.96e-06/0.3617, allocations: 0 / 0.5035 GB, free: 2.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.0654/0.4271, allocations: 22.21 MB / 0.5251 GB, free: 12.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2287/0.6558, allocations: 13.13 MB / 0.538 GB, free: 96.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01404/0.6698, allocations: 15.05 MB / 0.5527 GB, free: 91.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004958/0.6703, allocations: 89.7 kB / 0.5527 GB, free: 91.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002111/0.6724, allocations: 3.567 MB / 0.5562 GB, free: 88.15 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008486/0.6733, allocations: 1.289 MB / 0.5575 GB, free: 87.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007518/0.674, allocations: 0.5214 MB / 0.558 GB, free: 87.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.751e-05/0.6741, allocations: 312.3 kB / 0.5583 GB, free: 87.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/0.676, allocations: 1.23 MB / 0.5595 GB, free: 85.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002079/0.6781, allocations: 1.732 MB / 0.5612 GB, free: 84.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003999/0.6821, allocations: 2.974 MB / 0.5641 GB, free: 81.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.6821, allocations: 0 / 0.5641 GB, free: 81.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.009058/0.6911, allocations: 5.2 MB / 0.5692 GB, free: 76.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.6912, allocations: 8 kB / 0.5692 GB, free: 76.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.6912, allocations: 4 kB / 0.5692 GB, free: 76.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004812/0.696, allocations: 1.411 MB / 0.5706 GB, free: 75.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002356/0.6983, allocations: 0.5266 MB / 0.5711 GB, free: 74.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02167/0.72, allocations: 22.54 MB / 0.5931 GB, free: 51.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/0.723, allocations: 113.4 kB / 0.5932 GB, free: 51.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/0.7233, allocations: 116 kB / 0.5933 GB, free: 51.3 MB / 446.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.002419/0.7257, allocations: 2.196 MB / 0.5954 GB, free: 49.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007242/0.7264, allocations: 0.8653 MB / 0.5963 GB, free: 48.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009312/0.7357, allocations: 5.259 MB / 0.6014 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.7358, allocations: 36 kB / 0.6015 GB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.7358, allocations: 7.938 kB / 0.6015 GB, free: 42.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/0.7358, allocations: 23.94 kB / 0.6015 GB, free: 42.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.7516, allocations: 9.892 MB / 0.6112 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.7516, allocations: 2.688 kB / 0.6112 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002115/0.7537, allocations: 451.4 kB / 0.6116 GB, free: 32.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004749/0.7584, allocations: 1.343 MB / 0.6129 GB, free: 31.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/0.7586, allocations: 79.97 kB / 0.613 GB, free: 31.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01985/0.7785, allocations: 20.43 MB / 0.6329 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02235/0.8008, allocations: 11.44 MB / 0.6441 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/0.8159, allocations: 6.937 MB / 0.6509 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/0.8176, allocations: 0.7324 MB / 0.6516 GB, free: 6.387 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005962/0.8182, allocations: 65.97 kB / 0.6517 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/0.8203, allocations: 99.95 kB / 0.6518 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006931/0.8209, allocations: 283.2 kB / 0.652 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/0.8212, allocations: 99.97 kB / 0.6521 GB, free: 5.855 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0135/0.8347, allocations: 11.2 MB / 0.6631 GB, free: 10.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8347, allocations: 0 / 0.6631 GB, free: 10.71 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004179/0.8388, allocations: 1.103 MB / 0.6641 GB, free: 9.605 MB / 478.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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 249 * 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.001994/0.8408, allocations: 0.5306 MB / 0.6647 GB, free: 9.273 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008466/0.8493, allocations: 4.611 MB / 0.6692 GB, free: 4.547 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.8493, allocations: 0 / 0.6692 GB, free: 4.547 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005398/0.8547, allocations: 3.129 MB / 0.6722 GB, free: 1.309 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003147/0.8578, allocations: 0.5466 MB / 0.6727 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02812/0.886, allocations: 18.63 MB / 0.6909 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004896/0.8909, allocations: 3.572 MB / 0.6944 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/0.8921, allocations: 195.4 kB / 0.6946 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of SimCode: time 1.323e-06/0.8921, allocations: 0 / 0.6946 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of Templates: time 1.34/2.232, allocations: 0.5513 GB / 1.246 GB, free: 120.9 MB / 0.5606 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 16.691166787873954]