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) 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 4.0.0+maint.om/package.mo", uses=false) 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=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_4.0.0_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_4.0.0_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.00105/0.00105, allocations: 107.9 kB / 16.92 MB, free: 6.332 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.001142/0.001142, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 51.95 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08821, allocations: 49.44 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.012/0.1002, allocations: 11.09 MB / 361.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007171/0.1074, allocations: 3.647 MB / 364.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002529/0.11, allocations: 39.88 kB / 364.8 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1594/0.2694, allocations: 8.128 MB / 373 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007177/0.2766, allocations: 4.62 MB / 377.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002155/0.2788, allocations: 0.943 MB / 378.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006482/0.2853, allocations: 5.295 MB / 383.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.2865, allocations: 0.8918 MB / 384.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003628/0.2901, allocations: 2.856 MB / 387.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004549/0.2947, allocations: 5.117 MB / 392.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005721/0.2952, allocations: 352 kB / 393 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000803/0.2961, allocations: 388.8 kB / 393.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008829/0.2969, allocations: 1.871 MB / 395.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.2987, allocations: 2.791 MB / 398.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004508/0.3033, allocations: 7.151 MB / 405.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3033, allocations: 4.719 kB / 405.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3033, allocations: 0 / 405.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.3034, allocations: 0.8125 kB / 405.2 MB, free: 12.12 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01037/0.3138, allocations: 7.643 MB / 412.9 MB, free: 4.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3138, allocations: 8.031 kB / 412.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008767/0.3147, allocations: 0.8531 MB / 413.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/0.3182, allocations: 3.145 MB / 416.9 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3184, allocations: 156.5 kB / 417 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002756/0.3186, allocations: 208.5 kB / 417.2 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003611/0.3223, allocations: 2.115 MB / 419.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.811e-05/0.3223, allocations: 7.906 kB / 419.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.3225, allocations: 80 kB / 419.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.532e-05/0.3225, allocations: 52 kB / 419.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003687/0.3262, allocations: 1.899 MB / 421.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/0.3409, allocations: 8.944 MB / 430.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003776/0.3447, allocations: 2.329 MB / 432.7 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/0.3473, allocations: 1.387 MB / 434 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/0.3474, allocations: 40.78 kB / 434.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00205/0.3495, allocations: 1.167 MB / 435.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 3.657e-06/0.3495, allocations: 0 / 435.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06583/0.4154, allocations: 22.8 MB / 458 MB, free: 6.746 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02986/0.4453, allocations: 13.63 MB / 471.7 MB, free: 8.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0175/0.4628, allocations: 14.88 MB / 486.6 MB, free: 9.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005823/0.4634, allocations: 93.69 kB / 486.7 MB, free: 9.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003414/0.4668, allocations: 3.724 MB / 490.4 MB, free: 6.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001337/0.4682, allocations: 1.211 MB / 491.6 MB, free: 4.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/0.4695, allocations: 0.5157 MB / 492.1 MB, free: 4.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.111e-05/0.4696, allocations: 301.1 kB / 492.4 MB, free: 4.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002709/0.4723, allocations: 1.252 MB / 493.7 MB, free: 2.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002874/0.4752, allocations: 1.63 MB / 495.3 MB, free: 1.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005393/0.4806, allocations: 2.992 MB / 498.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.4806, allocations: 8 kB / 498.3 MB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01127/0.4919, allocations: 5.202 MB / 0.4917 GB, free: 8.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.492, allocations: 8 kB / 0.4917 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.492, allocations: 8 kB / 0.4917 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005748/0.4977, allocations: 1.404 MB / 0.4931 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/0.5008, allocations: 0.5383 MB / 0.4936 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02974/0.5305, allocations: 23.98 MB / 0.517 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0031/0.5336, allocations: 127.9 kB / 0.5171 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005311/0.5342, allocations: 108 kB / 0.5172 GB, free: 13.39 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.003427/0.5376, allocations: 2.192 MB / 0.5194 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001287/0.5389, allocations: 0.8174 MB / 0.5202 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/0.5508, allocations: 5.226 MB / 0.5253 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/0.5508, allocations: 32 kB / 0.5253 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/0.5508, allocations: 8 kB / 0.5253 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.999e-05/0.5509, allocations: 15.94 kB / 0.5253 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1949/0.7458, allocations: 11.08 MB / 0.5362 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/0.7458, allocations: 5.031 kB / 0.5362 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00229/0.7481, allocations: 457 kB / 0.5366 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005203/0.7533, allocations: 1.345 MB / 0.5379 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002569/0.7536, allocations: 76.44 kB / 0.538 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02198/0.7756, allocations: 21.87 MB / 0.5593 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02163/0.7973, allocations: 11.94 MB / 0.571 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/0.8095, allocations: 6.941 MB / 0.5778 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.8106, allocations: 0.75 MB / 0.5785 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005426/0.8112, allocations: 65.75 kB / 0.5786 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/0.8131, allocations: 114.9 kB / 0.5787 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006462/0.8138, allocations: 272.5 kB / 0.5789 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001697/0.8139, allocations: 92.95 kB / 0.579 GB, free: 117.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008902/0.8228, allocations: 11.12 MB / 0.5899 GB, free: 107.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8229, allocations: 0 / 0.5899 GB, free: 107.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004471/0.8273, allocations: 1.085 MB / 0.5909 GB, free: 106.6 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 (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.001519/0.8289, allocations: 0.5 MB / 0.5914 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01069/0.8396, allocations: 4.923 MB / 0.5962 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.8397, allocations: 0 / 0.5962 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004077/0.8437, allocations: 3.284 MB / 0.5994 GB, free: 97.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.8465, allocations: 0.5367 MB / 0.6 GB, free: 97.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.8641, allocations: 18.09 MB / 0.6176 GB, free: 79.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003111/0.8673, allocations: 4.017 MB / 0.6216 GB, free: 75.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00178/0.869, allocations: 312.9 kB / 0.6219 GB, free: 74.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006225/0.8697, allocations: 167.4 kB / 0.622 GB, free: 74.68 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8697, allocations: 0 / 0.622 GB, free: 74.68 MB / 446.1 MB Notification: Performance of Templates: time 0.1552/1.025, allocations: 65.39 MB / 0.6859 GB, free: 9.684 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches