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: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009485/0.0009526, allocations: 96.03 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 206.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000248/0.000248, allocations: 8 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08753, allocations: 51.51 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01032/0.09789, allocations: 10.71 MB / 370.6 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1667/0.2646, allocations: 3.78 MB / 374.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.267, allocations: 41.5 kB / 374.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008748/0.2758, allocations: 8.146 MB / 382.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006184/0.282, allocations: 4.635 MB / 387.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.2842, allocations: 0.8174 MB / 388 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006809/0.291, allocations: 5.19 MB / 393.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.2923, allocations: 0.7558 MB / 394 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003508/0.2958, allocations: 2.58 MB / 396.6 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005149/0.3009, allocations: 4.926 MB / 401.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005753/0.3015, allocations: 146 kB / 401.6 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007909/0.3023, allocations: 183.9 kB / 401.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/0.3037, allocations: 1.745 MB / 403.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00238/0.3061, allocations: 2.644 MB / 406.2 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00478/0.3109, allocations: 5.562 MB / 411.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3109, allocations: 0 / 411.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3109, allocations: 4 kB / 411.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.3111, allocations: 0 / 411.8 MB, free: 3.477 MB / 318.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.01079/0.3219, allocations: 6.647 MB / 418.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/0.322, allocations: 12.03 kB / 418.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001595/0.3236, allocations: 0.8999 MB / 419.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/0.3276, allocations: 3.215 MB / 422.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.3278, allocations: 160.2 kB / 422.7 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/0.3281, allocations: 207.9 kB / 422.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003908/0.332, allocations: 2.1 MB / 425 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.195e-05/0.3321, allocations: 7.906 kB / 425 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000192/0.3323, allocations: 84 kB / 425.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.821e-05/0.3323, allocations: 55.98 kB / 425.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003607/0.3359, allocations: 1.876 MB / 427 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.3499, allocations: 9.035 MB / 436.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003836/0.3538, allocations: 2.339 MB / 438.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.3563, allocations: 1.349 MB / 439.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/0.3565, allocations: 40.31 kB / 439.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002028/0.3585, allocations: 1.136 MB / 440.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.709e-06/0.3585, allocations: 0 / 440.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06623/0.4248, allocations: 22.6 MB / 463.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03156/0.4564, allocations: 13.32 MB / 476.8 MB, free: 1.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01734/0.4737, allocations: 15.03 MB / 491.9 MB, free: 2.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005521/0.4743, allocations: 85.77 kB / 492 MB, free: 2.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003601/0.478, allocations: 3.789 MB / 495.8 MB, free: 14.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001553/0.4795, allocations: 1.219 MB / 497 MB, free: 13.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004619/0.48, allocations: 260.9 kB / 497.2 MB, free: 13.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.625e-05/0.4801, allocations: 305.1 kB / 497.5 MB, free: 12.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/0.4826, allocations: 1.229 MB / 498.8 MB, free: 11.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002701/0.4853, allocations: 1.611 MB / 0.4886 GB, free: 9.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00527/0.4906, allocations: 2.976 MB / 0.4915 GB, free: 6.867 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.4906, allocations: 0 / 0.4915 GB, free: 6.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01175/0.5024, allocations: 5.21 MB / 0.4966 GB, free: 1.617 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.5024, allocations: 11.94 kB / 0.4966 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.155e-05/0.5024, allocations: 8 kB / 0.4966 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005907/0.5084, allocations: 1.412 MB / 0.498 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/0.5113, allocations: 0.5383 MB / 0.4986 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02725/0.5386, allocations: 22 MB / 0.52 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/0.5419, allocations: 127.9 kB / 0.5202 GB, free: 8.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004218/0.5423, allocations: 112 kB / 0.5203 GB, free: 8.191 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.003305/0.5457, allocations: 2.205 MB / 0.5224 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/0.5468, allocations: 0.833 MB / 0.5232 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1854/0.7321, allocations: 5.214 MB / 0.5283 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.274e-05/0.7322, allocations: 35.94 kB / 0.5284 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.583e-05/0.7323, allocations: 5.844 kB / 0.5284 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.206e-05/0.7324, allocations: 18.84 kB / 0.5284 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02272/0.7551, allocations: 11.13 MB / 0.5392 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.7552, allocations: 5.578 kB / 0.5393 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/0.7575, allocations: 455.6 kB / 0.5397 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005522/0.763, allocations: 1.351 MB / 0.541 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002963/0.7633, allocations: 75.17 kB / 0.5411 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02082/0.7841, allocations: 20.11 MB / 0.5607 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02445/0.8086, allocations: 11.67 MB / 0.5721 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/0.8225, allocations: 6.906 MB / 0.5789 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/0.824, allocations: 0.7797 MB / 0.5796 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009789/0.825, allocations: 65.84 kB / 0.5797 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/0.8276, allocations: 103.9 kB / 0.5798 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007116/0.8283, allocations: 265.2 kB / 0.58 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/0.8285, allocations: 95.97 kB / 0.5801 GB, free: 108.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01001/0.8385, allocations: 11.23 MB / 0.5911 GB, free: 97.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8386, allocations: 0 / 0.5911 GB, free: 97.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003722/0.8423, allocations: 1.097 MB / 0.5922 GB, free: 96.26 MB / 446.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.001146/0.8435, allocations: 0.4892 MB / 0.5926 GB, free: 95.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006557/0.85, allocations: 4.772 MB / 0.5973 GB, free: 91.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8501, allocations: 0 / 0.5973 GB, free: 91.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004087/0.8542, allocations: 3.258 MB / 0.6005 GB, free: 87.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004512/0.8587, allocations: 0.5365 MB / 0.601 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/0.8805, allocations: 20.85 MB / 0.6214 GB, free: 66.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003147/0.8837, allocations: 4.049 MB / 0.6253 GB, free: 62.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/0.8849, allocations: 195.4 kB / 0.6255 GB, free: 61.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8849, allocations: 0 / 0.6255 GB, free: 61.96 MB / 446.1 MB Notification: Performance of Templates: time 1.43/2.315, allocations: 0.5463 GB / 1.172 GB, free: 51.18 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches