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.00108/0.001084, allocations: 117.7 kB / 17.7 MB, free: 5.301 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.001076/0.001076, allocations: 187 kB / 18.63 MB, free: 4.375 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.333/1.333, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009981/0.0009982, allocations: 42.53 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.0942, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01139/0.1056, allocations: 11.09 MB / 362.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007808/0.1135, allocations: 3.647 MB / 366.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001924/0.1154, allocations: 43.81 kB / 366.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1683/0.2837, allocations: 8.132 MB / 374.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006868/0.2907, allocations: 4.619 MB / 379 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002493/0.2932, allocations: 0.9447 MB / 380 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009392/0.3026, allocations: 5.309 MB / 385.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.3038, allocations: 0.8897 MB / 386.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004437/0.3083, allocations: 2.856 MB / 389 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004517/0.3128, allocations: 5.123 MB / 394.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005834/0.3134, allocations: 352 kB / 394.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007201/0.3141, allocations: 388 kB / 394.9 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008035/0.3149, allocations: 1.873 MB / 396.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001582/0.3165, allocations: 2.787 MB / 399.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005027/0.3216, allocations: 7.243 MB / 406.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3216, allocations: 0 / 406.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3216, allocations: 0.8438 kB / 406.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001387/0.3217, allocations: 0 / 406.8 MB, free: 11.49 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.01122/0.333, allocations: 7.645 MB / 414.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.333, allocations: 8.031 kB / 414.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00085/0.3339, allocations: 0.8493 MB / 415.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004127/0.338, allocations: 3.18 MB / 418.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3382, allocations: 156.5 kB / 418.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/0.3384, allocations: 208.5 kB / 418.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003746/0.3422, allocations: 2.112 MB / 420.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.384e-05/0.3423, allocations: 7.906 kB / 420.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.3424, allocations: 88 kB / 421 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.3425, allocations: 48 kB / 421.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003622/0.3461, allocations: 1.899 MB / 423 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01289/0.359, allocations: 8.879 MB / 431.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003608/0.3626, allocations: 2.323 MB / 434.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002505/0.3652, allocations: 1.381 MB / 435.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.3653, allocations: 48 kB / 435.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002129/0.3675, allocations: 1.164 MB / 436.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.769e-06/0.3675, allocations: 0 / 436.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06623/0.4337, allocations: 22.79 MB / 459.6 MB, free: 6.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03017/0.4639, allocations: 13.61 MB / 473.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01744/0.4814, allocations: 14.89 MB / 488.1 MB, free: 9.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005355/0.482, allocations: 85.7 kB / 488.1 MB, free: 9.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003363/0.4853, allocations: 3.725 MB / 491.9 MB, free: 5.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.4867, allocations: 1.212 MB / 493.1 MB, free: 4.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001192/0.4879, allocations: 0.5157 MB / 493.6 MB, free: 3.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.488, allocations: 305.1 kB / 493.9 MB, free: 3.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/0.4906, allocations: 1.252 MB / 495.1 MB, free: 2.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002766/0.4934, allocations: 1.629 MB / 496.8 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005306/0.4987, allocations: 2.996 MB / 499.8 MB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.4988, allocations: 7.938 kB / 499.8 MB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.0112/0.51, allocations: 5.199 MB / 0.4931 GB, free: 8.277 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/0.5101, allocations: 8 kB / 0.4932 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.337e-05/0.5101, allocations: 11.98 kB / 0.4932 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005987/0.5161, allocations: 1.389 MB / 0.4945 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.519, allocations: 0.5383 MB / 0.495 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02924/0.5482, allocations: 23.96 MB / 0.5184 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.5518, allocations: 132 kB / 0.5186 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004498/0.5523, allocations: 112 kB / 0.5187 GB, free: 12.87 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.003166/0.5554, allocations: 2.184 MB / 0.5208 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/0.5566, allocations: 0.8253 MB / 0.5216 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/0.5678, allocations: 5.215 MB / 0.5267 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/0.5678, allocations: 36 kB / 0.5267 GB, free: 4.539 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.102e-05/0.5679, allocations: 8 kB / 0.5267 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/0.5679, allocations: 19.92 kB / 0.5268 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1759/0.7438, allocations: 11.05 MB / 0.5376 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.7439, allocations: 1.125 kB / 0.5376 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/0.7463, allocations: 462.3 kB / 0.538 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005724/0.7521, allocations: 1.34 MB / 0.5393 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003204/0.7524, allocations: 77.88 kB / 0.5394 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02229/0.7747, allocations: 21.84 MB / 0.5607 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02208/0.7968, allocations: 11.93 MB / 0.5724 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/0.8103, allocations: 6.944 MB / 0.5791 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/0.8122, allocations: 0.7466 MB / 0.5799 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009585/0.8132, allocations: 75.47 kB / 0.5799 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002504/0.8157, allocations: 111.8 kB / 0.58 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007541/0.8165, allocations: 273.2 kB / 0.5803 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/0.8167, allocations: 99.17 kB / 0.5804 GB, free: 116.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00967/0.8264, allocations: 11.12 MB / 0.5913 GB, free: 105.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8264, allocations: 0 / 0.5913 GB, free: 105.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004373/0.8308, allocations: 1.074 MB / 0.5923 GB, free: 104.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.001179/0.832, allocations: 0.4962 MB / 0.5928 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006632/0.8387, allocations: 4.811 MB / 0.5975 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.8387, allocations: 4.062 kB / 0.5975 GB, free: 99.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004279/0.843, allocations: 3.281 MB / 0.6007 GB, free: 95.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003852/0.8468, allocations: 0.5446 MB / 0.6012 GB, free: 95.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/0.8672, allocations: 17.9 MB / 0.6187 GB, free: 77.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/0.8702, allocations: 4.016 MB / 0.6226 GB, free: 73.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001689/0.8719, allocations: 309.7 kB / 0.6229 GB, free: 73.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005782/0.8725, allocations: 175.4 kB / 0.6231 GB, free: 72.98 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8725, allocations: 0 / 0.6231 GB, free: 72.98 MB / 446.1 MB Notification: Performance of Templates: time 0.1705/1.043, allocations: 65.39 MB / 0.687 GB, free: 7.973 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 -s gbode -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/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches