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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000957/0.000957, allocations: 109.6 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000942/0.000942, allocations: 51.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1944, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008251/0.2027, allocations: 11.2 MB / 418.3 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005366/0.2081, allocations: 3.83 MB / 422.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.21, allocations: 35.88 kB / 422.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00492/0.215, allocations: 8.145 MB / 430.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005061/0.2201, allocations: 4.611 MB / 434.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002181/0.2223, allocations: 0.8474 MB / 435.7 MB, free: 15.06 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005951/0.2282, allocations: 5.197 MB / 440.9 MB, free: 9.852 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001597/0.2299, allocations: 0.773 MB / 441.7 MB, free: 9.051 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003582/0.2335, allocations: 2.618 MB / 444.3 MB, free: 6.426 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005478/0.239, allocations: 4.986 MB / 449.3 MB, free: 1.422 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009609/0.24, allocations: 168 kB / 449.5 MB, free: 1.258 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.241, allocations: 219.9 kB / 449.7 MB, free: 1.043 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001645/0.2427, allocations: 1.779 MB / 451.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.2456, allocations: 2.647 MB / 454.1 MB, free: 12.58 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005793/0.2514, allocations: 7.043 MB / 461.1 MB, free: 5.508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2514, allocations: 3.938 kB / 461.1 MB, free: 5.504 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2514, allocations: 0 / 461.1 MB, free: 5.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001647/0.2516, allocations: 0 / 461.1 MB, free: 5.504 MB / 330.7 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.01218/0.2638, allocations: 7.744 MB / 468.9 MB, free: 13.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2638, allocations: 12.03 kB / 468.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.2655, allocations: 0.896 MB / 469.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004299/0.2698, allocations: 3.188 MB / 473 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2699, allocations: 156.5 kB / 473.1 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002978/0.2702, allocations: 216 kB / 473.3 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003857/0.2741, allocations: 2.123 MB / 475.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/0.2741, allocations: 4 kB / 475.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001682/0.2743, allocations: 80 kB / 475.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.2744, allocations: 52 kB / 475.6 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003751/0.2781, allocations: 1.926 MB / 477.5 MB, free: 4.844 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.2916, allocations: 9.011 MB / 486.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003744/0.2954, allocations: 2.329 MB / 488.9 MB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002592/0.298, allocations: 1.384 MB / 490.3 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.2981, allocations: 46.27 kB / 490.3 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002066/0.3002, allocations: 1.163 MB / 491.5 MB, free: 6.602 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 3.927e-06/0.3002, allocations: 0 / 491.5 MB, free: 6.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.2299/0.5301, allocations: 22.96 MB / 0.5024 GB, free: 87.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02691/0.5571, allocations: 13.11 MB / 0.5152 GB, free: 80.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0119/0.569, allocations: 15.01 MB / 0.5298 GB, free: 70.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005062/0.5695, allocations: 96.67 kB / 0.5299 GB, free: 70.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002108/0.5716, allocations: 3.769 MB / 0.5336 GB, free: 66.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009125/0.5726, allocations: 1.214 MB / 0.5348 GB, free: 66.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008286/0.5734, allocations: 0.5156 MB / 0.5353 GB, free: 65.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.105e-05/0.5734, allocations: 301.1 kB / 0.5356 GB, free: 65.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.5756, allocations: 1.268 MB / 0.5368 GB, free: 64.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.5779, allocations: 1.636 MB / 0.5384 GB, free: 62.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004436/0.5823, allocations: 3.015 MB / 0.5413 GB, free: 59.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.5824, allocations: 0 / 0.5413 GB, free: 59.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009564/0.5919, allocations: 5.245 MB / 0.5465 GB, free: 53.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.592, allocations: 10.81 kB / 0.5465 GB, free: 53.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.592, allocations: 4 kB / 0.5465 GB, free: 53.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005008/0.597, allocations: 1.406 MB / 0.5479 GB, free: 52.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002306/0.5993, allocations: 0.5422 MB / 0.5484 GB, free: 51.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02102/0.6203, allocations: 21.97 MB / 0.5698 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003071/0.6234, allocations: 128 kB / 0.57 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/0.6237, allocations: 112 kB / 0.5701 GB, free: 28.6 MB / 378.7 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.002395/0.6261, allocations: 2.196 MB / 0.5722 GB, free: 26.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007138/0.6268, allocations: 0.8213 MB / 0.573 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009642/0.6365, allocations: 5.259 MB / 0.5782 GB, free: 20.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/0.6365, allocations: 40 kB / 0.5782 GB, free: 20.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.6365, allocations: 4 kB / 0.5782 GB, free: 20.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.727e-05/0.6366, allocations: 15.94 kB / 0.5782 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/0.6532, allocations: 11.17 MB / 0.5891 GB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.6532, allocations: 0 / 0.5891 GB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/0.6553, allocations: 467.4 kB / 0.5896 GB, free: 8.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00484/0.6602, allocations: 1.346 MB / 0.5909 GB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/0.6604, allocations: 75.97 kB / 0.5909 GB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/0.6824, allocations: 20.07 MB / 0.6105 GB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02417/0.7067, allocations: 11.49 MB / 0.6218 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3237/1.03, allocations: 67.62 MB / 0.6878 GB, free: 135.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.032, allocations: 0.77 MB / 0.6885 GB, free: 135 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006295/1.032, allocations: 62.56 kB / 0.6886 GB, free: 135 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.034, allocations: 115.2 kB / 0.6887 GB, free: 135 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006884/1.035, allocations: 259.2 kB / 0.689 GB, free: 135 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/1.035, allocations: 97.23 kB / 0.6891 GB, free: 135 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009565/1.045, allocations: 11.2 MB / 0.7 GB, free: 133.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.1e-07/1.045, allocations: 3.844 kB / 0.7 GB, free: 133.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006296/1.051, allocations: 1.712 MB / 0.7017 GB, free: 133.3 MB / 458.7 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.001136/1.052, allocations: 0.5001 MB / 0.7022 GB, free: 133.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006739/1.059, allocations: 4.81 MB / 0.7069 GB, free: 130.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/1.059, allocations: 3.938 kB / 0.7069 GB, free: 130.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004107/1.063, allocations: 3.275 MB / 0.7101 GB, free: 127.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/1.066, allocations: 0.5302 MB / 0.7106 GB, free: 127.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02683/1.093, allocations: 24.1 MB / 0.7341 GB, free: 105.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004726/1.098, allocations: 4.184 MB / 0.7382 GB, free: 102 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003186/1.101, allocations: 365.9 kB / 0.7385 GB, free: 101.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/1.103, allocations: 210.6 kB / 0.7387 GB, free: 101.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/1.103, allocations: 0 / 0.7387 GB, free: 101.5 MB / 458.7 MB Notification: Performance of Templates: time 0.1983/1.301, allocations: 98.57 MB / 0.835 GB, free: 3.23 MB / 458.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches