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.001878/0.001878, allocations: 108.6 kB / 21.18 MB, free: 0.7617 MB / 14.72 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.002346/0.002346, allocations: 189.2 kB / 24.48 MB, free: 4.164 MB / 14.72 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 1.424/1.424, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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: 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.0.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.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 51.92 kB / 371.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2735, allocations: 52.19 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01346/0.2869, allocations: 11.18 MB / 435.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007553/0.2945, allocations: 3.658 MB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.2965, allocations: 47.75 kB / 438.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008613/0.3051, allocations: 8.136 MB / 446.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007102/0.3122, allocations: 4.655 MB / 451.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002822/0.315, allocations: 0.9595 MB / 452.5 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007356/0.3223, allocations: 5.304 MB / 457.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.3238, allocations: 0.6016 MB / 458.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004712/0.3285, allocations: 2.895 MB / 461.3 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007468/0.336, allocations: 5.786 MB / 467.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001187/0.3372, allocations: 352 kB / 467.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.3385, allocations: 388 kB / 467.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002029/0.3405, allocations: 1.88 MB / 469.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003873/0.3444, allocations: 2.78 MB / 472.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009017/0.3534, allocations: 7.292 MB / 479.8 MB, free: 6.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3534, allocations: 0 / 479.8 MB, free: 6.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3534, allocations: 0 / 479.8 MB, free: 6.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.3537, allocations: 0 / 479.8 MB, free: 6.578 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01505/0.3687, allocations: 7.865 MB / 487.6 MB, free: 14.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.3688, allocations: 12.03 kB / 487.7 MB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001634/0.3704, allocations: 0.8895 MB / 488.6 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005975/0.3764, allocations: 3.17 MB / 491.7 MB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.3765, allocations: 160.5 kB / 491.9 MB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003904/0.3769, allocations: 208.9 kB / 492.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004306/0.3812, allocations: 2.108 MB / 494.2 MB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.3813, allocations: 7.891 kB / 494.2 MB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.3815, allocations: 84 kB / 494.3 MB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.384e-05/0.3815, allocations: 52 kB / 494.3 MB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004111/0.3856, allocations: 1.903 MB / 496.2 MB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01626/0.4019, allocations: 8.799 MB / 0.4932 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004094/0.406, allocations: 2.017 MB / 0.4952 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/0.4089, allocations: 1.307 MB / 0.4964 GB, free: 9.543 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.4091, allocations: 38.27 kB / 0.4965 GB, free: 9.504 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00229/0.4113, allocations: 1.167 MB / 0.4976 GB, free: 8.301 MB / 414.1 MB Notification: Performance of pre-optimization done (n=242): time 4.228e-06/0.4114, allocations: 0 / 0.4976 GB, free: 8.301 MB / 414.1 MB Notification: Performance of matching and sorting (n=367): time 0.07333/0.4847, allocations: 22.56 MB / 0.5196 GB, free: 1.578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03369/0.5184, allocations: 13.38 MB / 0.5327 GB, free: 3.871 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2135/0.7319, allocations: 14.89 MB / 0.5473 GB, free: 101.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005866/0.7325, allocations: 88.45 kB / 0.5473 GB, free: 101 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002737/0.7352, allocations: 3.744 MB / 0.551 GB, free: 98.35 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/0.7365, allocations: 1.27 MB / 0.5522 GB, free: 98.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008696/0.7373, allocations: 0.5181 MB / 0.5527 GB, free: 97.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.486e-05/0.7374, allocations: 301.8 kB / 0.553 GB, free: 97.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/0.7396, allocations: 1.254 MB / 0.5543 GB, free: 97.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.742, allocations: 1.621 MB / 0.5558 GB, free: 95.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004555/0.7466, allocations: 2.992 MB / 0.5588 GB, free: 92.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.7466, allocations: 9.031 kB / 0.5588 GB, free: 92.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01066/0.7572, allocations: 5.199 MB / 0.5638 GB, free: 88.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.7573, allocations: 11.28 kB / 0.5639 GB, free: 88.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.7573, allocations: 6.016 kB / 0.5639 GB, free: 88.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005398/0.7627, allocations: 1.385 MB / 0.5652 GB, free: 87.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/0.7654, allocations: 0.5445 MB / 0.5657 GB, free: 86.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02271/0.7881, allocations: 23.04 MB / 0.5882 GB, free: 62.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003064/0.7912, allocations: 131.9 kB / 0.5884 GB, free: 62.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003459/0.7916, allocations: 108 kB / 0.5885 GB, free: 62.67 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 (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.00251/0.7941, allocations: 2.186 MB / 0.5906 GB, free: 60.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008499/0.7949, allocations: 0.8653 MB / 0.5915 GB, free: 59.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/0.805, allocations: 5.255 MB / 0.5966 GB, free: 54.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/0.805, allocations: 36 kB / 0.5966 GB, free: 54.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/0.805, allocations: 11.94 kB / 0.5966 GB, free: 54.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.633e-05/0.8051, allocations: 19.94 kB / 0.5966 GB, free: 54.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/0.8232, allocations: 10.89 MB / 0.6073 GB, free: 43.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-05/0.8232, allocations: 0 / 0.6073 GB, free: 43.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/0.8256, allocations: 463.3 kB / 0.6077 GB, free: 42.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005141/0.8308, allocations: 1.338 MB / 0.609 GB, free: 41.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000404/0.8312, allocations: 78.58 kB / 0.6091 GB, free: 41.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/0.8514, allocations: 20.95 MB / 0.6296 GB, free: 19.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0218/0.8732, allocations: 11.69 MB / 0.641 GB, free: 7.547 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/0.8863, allocations: 6.943 MB / 0.6478 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/0.8879, allocations: 0.7194 MB / 0.6485 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/0.889, allocations: 68 kB / 0.6485 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002771/0.8918, allocations: 107.9 kB / 0.6486 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008582/0.8927, allocations: 291.2 kB / 0.6489 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003416/0.893, allocations: 95.97 kB / 0.649 GB, free: 15.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01491/0.9079, allocations: 11.12 MB / 0.6599 GB, free: 4.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9079, allocations: 0 / 0.6599 GB, free: 4.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004494/0.9124, allocations: 1.084 MB / 0.6609 GB, free: 3.078 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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.001933/0.9143, allocations: 0.4929 MB / 0.6614 GB, free: 2.754 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008906/0.9232, allocations: 4.639 MB / 0.6659 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.9233, allocations: 0 / 0.6659 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006025/0.9293, allocations: 3.148 MB / 0.669 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003835/0.9331, allocations: 0.5496 MB / 0.6695 GB, free: 10.19 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/0.9633, allocations: 18.5 MB / 0.6876 GB, free: 7.641 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004889/0.9681, allocations: 4.006 MB / 0.6915 GB, free: 3.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.9694, allocations: 199.4 kB / 0.6917 GB, free: 3.395 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/0.9694, allocations: 3.938 kB / 0.6917 GB, free: 3.391 MB / 494.1 MB Notification: Performance of Templates: time 1.367/2.336, allocations: 0.542 GB / 1.234 GB, free: 120.8 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/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_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: 16.543551163049415]