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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=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_3.2.3_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_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 110.7 kB / 18.35 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 184.2 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 51.92 kB / 329.1 MB, free: 3.348 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09003/0.09125, allocations: 46.61 MB / 375.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2283/0.3196, allocations: 10.98 MB / 386.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007992/0.3276, allocations: 3.551 MB / 390.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003139/0.3308, allocations: 39.44 kB / 390.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01061/0.3415, allocations: 8.132 MB / 398.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007594/0.3491, allocations: 4.624 MB / 403.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002855/0.352, allocations: 0.9204 MB / 404 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008781/0.3608, allocations: 5.308 MB / 409.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.3626, allocations: 0.8979 MB / 410.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005909/0.3685, allocations: 2.859 MB / 413.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007088/0.3757, allocations: 5.123 MB / 418.2 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.3768, allocations: 353.1 kB / 418.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001293/0.3781, allocations: 395.9 kB / 418.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001393/0.3795, allocations: 1.869 MB / 420.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003122/0.3826, allocations: 2.776 MB / 423.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006652/0.3893, allocations: 7.254 MB / 430.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3893, allocations: 0 / 430.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3893, allocations: 0 / 430.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001933/0.3895, allocations: 0 / 430.8 MB, free: 8.551 MB / 350.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.01326/0.4028, allocations: 7.647 MB / 438.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4029, allocations: 12.03 kB / 438.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.404, allocations: 0.8416 MB / 439.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004295/0.4083, allocations: 3.183 MB / 442.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.4085, allocations: 156.5 kB / 442.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003482/0.4088, allocations: 208 kB / 442.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004016/0.4128, allocations: 2.116 MB / 445 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.541e-05/0.4129, allocations: 0 / 445 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001845/0.4131, allocations: 88 kB / 445.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.4132, allocations: 48 kB / 445.1 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003872/0.417, allocations: 1.899 MB / 447 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01509/0.4322, allocations: 8.876 MB / 455.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00401/0.4362, allocations: 2.333 MB / 458.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002674/0.4389, allocations: 1.381 MB / 459.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/0.4391, allocations: 42.27 kB / 459.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002069/0.4411, allocations: 1.156 MB / 460.8 MB, free: 9.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.448e-06/0.4412, allocations: 7.875 kB / 460.8 MB, free: 9.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.06556/0.5067, allocations: 22.81 MB / 483.6 MB, free: 2.824 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02991/0.5367, allocations: 13.61 MB / 497.2 MB, free: 4.832 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01816/0.5549, allocations: 14.89 MB / 0.5001 GB, free: 6.004 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005979/0.5555, allocations: 85.7 kB / 0.5002 GB, free: 5.914 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003688/0.5592, allocations: 3.737 MB / 0.5038 GB, free: 2.168 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001541/0.5608, allocations: 1.209 MB / 0.505 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.5618, allocations: 0.5117 MB / 0.5055 GB, free: 432 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5619, allocations: 305.1 kB / 0.5058 GB, free: 124 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.5645, allocations: 1.248 MB / 0.507 GB, free: 14.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002797/0.5673, allocations: 1.626 MB / 0.5086 GB, free: 13.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005373/0.5727, allocations: 2.996 MB / 0.5115 GB, free: 10.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.5727, allocations: 0 / 0.5115 GB, free: 10.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01176/0.5845, allocations: 5.211 MB / 0.5166 GB, free: 4.844 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.5846, allocations: 8 kB / 0.5166 GB, free: 4.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.5846, allocations: 4 kB / 0.5166 GB, free: 4.832 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/0.59, allocations: 1.389 MB / 0.518 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00291/0.593, allocations: 0.5344 MB / 0.5185 GB, free: 2.883 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02919/0.6222, allocations: 23.96 MB / 0.5419 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003544/0.6258, allocations: 135.8 kB / 0.542 GB, free: 9.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004064/0.6262, allocations: 112 kB / 0.5422 GB, free: 9.398 MB / 478.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.003678/0.6299, allocations: 2.188 MB / 0.5443 GB, free: 7.199 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/0.6311, allocations: 0.8098 MB / 0.5451 GB, free: 6.379 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/0.6429, allocations: 5.223 MB / 0.5502 GB, free: 1.109 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.945e-05/0.643, allocations: 36 kB / 0.5502 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/0.643, allocations: 4 kB / 0.5502 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-05/0.643, allocations: 27.81 kB / 0.5502 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2339/0.877, allocations: 11.04 MB / 0.561 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.877, allocations: 4.844 kB / 0.561 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002479/0.8795, allocations: 463.5 kB / 0.5615 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005548/0.8851, allocations: 1.34 MB / 0.5628 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004429/0.8856, allocations: 74.5 kB / 0.5629 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02357/0.9091, allocations: 21.84 MB / 0.5842 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02272/0.9319, allocations: 11.92 MB / 0.5958 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/0.9451, allocations: 6.954 MB / 0.6026 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/0.9466, allocations: 0.7509 MB / 0.6034 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008856/0.9475, allocations: 68.94 kB / 0.6034 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002218/0.9497, allocations: 109.7 kB / 0.6035 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007803/0.9505, allocations: 266.6 kB / 0.6038 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/0.9507, allocations: 96.16 kB / 0.6039 GB, free: 118 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01088/0.9616, allocations: 11.12 MB / 0.6147 GB, free: 107.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.9617, allocations: 2.938 kB / 0.6147 GB, free: 107.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004638/0.9663, allocations: 1.078 MB / 0.6158 GB, free: 106.4 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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * 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.00138/0.9677, allocations: 0.5034 MB / 0.6163 GB, free: 106 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00716/0.9749, allocations: 4.808 MB / 0.621 GB, free: 101.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.9749, allocations: 0 / 0.621 GB, free: 101.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004548/0.9795, allocations: 3.285 MB / 0.6242 GB, free: 97.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003345/0.9828, allocations: 0.558 MB / 0.6247 GB, free: 97.14 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02301/1.006, allocations: 18.25 MB / 0.6425 GB, free: 78.86 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003883/1.01, allocations: 4.006 MB / 0.6465 GB, free: 74.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/1.011, allocations: 203.4 kB / 0.6467 GB, free: 74.61 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/1.011, allocations: 0 / 0.6467 GB, free: 74.61 MB / 478.1 MB Notification: Performance of Templates: time 1.439/2.45, allocations: 0.5417 GB / 1.188 GB, free: 128.6 MB / 0.5137 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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 & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches