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.001081/0.001081, allocations: 90.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 246.8 MB, free: 11.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002212/0.0002213, allocations: 8.281 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09843/0.09867, allocations: 51.53 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01138/0.1101, allocations: 10.71 MB / 370 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1853/0.2955, allocations: 3.778 MB / 373.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001757/0.2973, allocations: 40.34 kB / 373.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009093/0.3064, allocations: 8.145 MB / 381.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008957/0.3154, allocations: 4.639 MB / 386.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.3186, allocations: 0.8046 MB / 387.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008929/0.3275, allocations: 5.187 MB / 392.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.3289, allocations: 0.765 MB / 393.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004058/0.333, allocations: 2.578 MB / 395.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008272/0.3413, allocations: 4.92 MB / 400.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009246/0.3422, allocations: 148 kB / 401 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.3435, allocations: 188 kB / 401.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.3453, allocations: 1.748 MB / 402.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003643/0.3489, allocations: 2.64 MB / 405.5 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008324/0.3573, allocations: 6.927 MB / 412.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3573, allocations: 0 / 412.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.3573, allocations: 4 kB / 412.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001882/0.3575, allocations: 0 / 412.5 MB, free: 2.25 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.01028/0.3678, allocations: 6.657 MB / 419.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3679, allocations: 8.031 kB / 419.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/0.3695, allocations: 0.9039 MB / 420 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.3735, allocations: 3.217 MB / 423.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.3736, allocations: 156.2 kB / 423.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003194/0.3739, allocations: 208 kB / 423.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003914/0.3778, allocations: 2.104 MB / 425.7 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/0.3779, allocations: 7.891 kB / 425.7 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.3781, allocations: 88 kB / 425.8 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.089e-05/0.3782, allocations: 48 kB / 425.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004483/0.3826, allocations: 1.86 MB / 427.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01483/0.3975, allocations: 9.061 MB / 436.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003972/0.4015, allocations: 2.328 MB / 439.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.404, allocations: 1.343 MB / 440.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/0.4042, allocations: 52.14 kB / 440.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00196/0.4062, allocations: 1.134 MB / 441.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.378e-06/0.4062, allocations: 0 / 441.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06508/0.4713, allocations: 22.61 MB / 464.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03186/0.5032, allocations: 13.31 MB / 477.5 MB, free: 268 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01737/0.5206, allocations: 15.03 MB / 492.6 MB, free: 1.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006206/0.5212, allocations: 85.7 kB / 492.7 MB, free: 1.141 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003419/0.5247, allocations: 3.785 MB / 496.4 MB, free: 13.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001361/0.526, allocations: 1.219 MB / 497.7 MB, free: 12.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003978/0.5264, allocations: 260.9 kB / 497.9 MB, free: 11.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.5265, allocations: 305.2 kB / 498.2 MB, free: 11.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002492/0.529, allocations: 1.233 MB / 499.5 MB, free: 10.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002677/0.5317, allocations: 1.611 MB / 0.4893 GB, free: 8.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005187/0.5369, allocations: 2.974 MB / 0.4922 GB, free: 5.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.537, allocations: 7.938 kB / 0.4922 GB, free: 5.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.012/0.549, allocations: 5.21 MB / 0.4973 GB, free: 384 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.549, allocations: 8 kB / 0.4973 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.5491, allocations: 4 kB / 0.4973 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005991/0.5551, allocations: 1.427 MB / 0.4987 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002932/0.558, allocations: 0.5305 MB / 0.4992 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02701/0.585, allocations: 22.01 MB / 0.5207 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/0.5882, allocations: 123.8 kB / 0.5209 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003255/0.5885, allocations: 108 kB / 0.521 GB, free: 6.949 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.003168/0.5917, allocations: 2.196 MB / 0.5231 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009956/0.5927, allocations: 0.833 MB / 0.5239 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1967/0.7895, allocations: 5.205 MB / 0.529 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.312e-05/0.7896, allocations: 37.73 kB / 0.529 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-05/0.7896, allocations: 8.938 kB / 0.529 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.264e-05/0.7897, allocations: 23.08 kB / 0.5291 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02199/0.8117, allocations: 11.13 MB / 0.5399 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/0.8117, allocations: 3.328 kB / 0.5399 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/0.8142, allocations: 454.7 kB / 0.5404 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005496/0.8197, allocations: 1.356 MB / 0.5417 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003912/0.8201, allocations: 78.14 kB / 0.5418 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/0.8402, allocations: 20.1 MB / 0.5614 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02375/0.864, allocations: 11.68 MB / 0.5728 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/0.8768, allocations: 6.903 MB / 0.5795 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.8782, allocations: 0.7816 MB / 0.5803 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006867/0.8789, allocations: 68 kB / 0.5804 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002049/0.8809, allocations: 100.6 kB / 0.5805 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006206/0.8816, allocations: 267.3 kB / 0.5807 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.8817, allocations: 91.98 kB / 0.5808 GB, free: 107.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009769/0.8915, allocations: 11.23 MB / 0.5918 GB, free: 96.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8915, allocations: 1.75 kB / 0.5918 GB, free: 96.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003984/0.8955, allocations: 1.092 MB / 0.5928 GB, free: 95.29 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.001217/0.8968, allocations: 0.5065 MB / 0.5933 GB, free: 94.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006517/0.9033, allocations: 4.762 MB / 0.598 GB, free: 90.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.9033, allocations: 0 / 0.598 GB, free: 90.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004196/0.9075, allocations: 3.253 MB / 0.6012 GB, free: 86.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004902/0.9125, allocations: 0.549 MB / 0.6017 GB, free: 86.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02006/0.9325, allocations: 20.51 MB / 0.6217 GB, free: 65.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00311/0.9357, allocations: 4.05 MB / 0.6257 GB, free: 61.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001933/0.9376, allocations: 317.5 kB / 0.626 GB, free: 61.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006252/0.9383, allocations: 175.4 kB / 0.6261 GB, free: 61.02 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.9383, allocations: 0 / 0.6261 GB, free: 61.02 MB / 446.1 MB Notification: Performance of Templates: time 0.09096/1.029, allocations: 62.49 MB / 0.6872 GB, free: 14.8 MB / 462.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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches