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.00158/0.00158, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001833/0.001833, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 59.44 kB / 307.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08436/0.08564, allocations: 50.52 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01225/0.09793, allocations: 11.39 MB / 369.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1495/0.2475, allocations: 3.862 MB / 373.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001893/0.2494, allocations: 39.09 kB / 373.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008603/0.258, allocations: 8.15 MB / 381.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006029/0.2641, allocations: 4.708 MB / 386.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002158/0.2663, allocations: 0.9273 MB / 387.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005988/0.2723, allocations: 5.389 MB / 392.6 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.2734, allocations: 0.8967 MB / 393.5 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003266/0.2767, allocations: 2.896 MB / 396.4 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004762/0.2815, allocations: 5.174 MB / 401.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006716/0.2821, allocations: 360 kB / 401.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008774/0.283, allocations: 403.5 kB / 402.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001197/0.2842, allocations: 1.882 MB / 404.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00214/0.2864, allocations: 2.844 MB / 407 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00532/0.2917, allocations: 7.286 MB / 414.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2917, allocations: 4 kB / 414.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2918, allocations: 0 / 414.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.2919, allocations: 4 kB / 414.3 MB, free: 0.4922 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.01102/0.3029, allocations: 7.73 MB / 422.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.303, allocations: 8.031 kB / 422.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.3046, allocations: 0.9039 MB / 423 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.3083, allocations: 3.214 MB / 426.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3084, allocations: 156.2 kB / 426.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002845/0.3087, allocations: 211.9 kB / 426.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003468/0.3122, allocations: 2.085 MB / 428.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/0.3123, allocations: 7.906 kB / 428.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/0.3124, allocations: 91.98 kB / 428.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.3125, allocations: 52 kB / 428.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003316/0.3158, allocations: 1.841 MB / 430.6 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.3288, allocations: 9.025 MB / 439.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003481/0.3323, allocations: 2.328 MB / 442 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/0.3347, allocations: 1.361 MB / 443.3 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.3349, allocations: 40.39 kB / 443.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001867/0.3367, allocations: 1.128 MB / 444.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.208e-06/0.3368, allocations: 0 / 444.5 MB, free: 2.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06528/0.4021, allocations: 22.45 MB / 467 MB, free: 11.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03021/0.4323, allocations: 13.71 MB / 480.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02008/0.4524, allocations: 15.03 MB / 495.7 MB, free: 14.22 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006105/0.4531, allocations: 93.7 kB / 495.8 MB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003839/0.4569, allocations: 3.782 MB / 499.6 MB, free: 10.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/0.4584, allocations: 1.223 MB / 0.4891 GB, free: 9.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.4599, allocations: 0.5196 MB / 0.4896 GB, free: 8.598 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.46, allocations: 309.1 kB / 0.4899 GB, free: 8.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002562/0.4626, allocations: 1.225 MB / 0.4911 GB, free: 7.066 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002703/0.4653, allocations: 1.603 MB / 0.4926 GB, free: 5.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005271/0.4706, allocations: 2.964 MB / 0.4955 GB, free: 2.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.4706, allocations: 3.938 kB / 0.4955 GB, free: 2.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01113/0.4818, allocations: 5.202 MB / 0.5006 GB, free: 13.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.4818, allocations: 4 kB / 0.5006 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.4819, allocations: 12 kB / 0.5006 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005592/0.4875, allocations: 1.412 MB / 0.502 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002663/0.4901, allocations: 0.5344 MB / 0.5025 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02869/0.5188, allocations: 24.06 MB / 0.526 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.5221, allocations: 123.7 kB / 0.5261 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005207/0.5226, allocations: 116 kB / 0.5262 GB, free: 1.594 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.1653/0.688, allocations: 2.187 MB / 0.5284 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/0.6892, allocations: 0.8256 MB / 0.5292 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.7006, allocations: 5.202 MB / 0.5343 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-05/0.7006, allocations: 37.86 kB / 0.5343 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/0.7007, allocations: 4.75 kB / 0.5343 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.062e-05/0.7007, allocations: 26.33 kB / 0.5343 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01999/0.7207, allocations: 11.11 MB / 0.5452 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.304e-05/0.7208, allocations: 4.938 kB / 0.5452 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/0.7232, allocations: 451.2 kB / 0.5456 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005416/0.7287, allocations: 1.365 MB / 0.5469 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004665/0.7292, allocations: 74.45 kB / 0.547 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/0.7502, allocations: 21.92 MB / 0.5684 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02219/0.7724, allocations: 12.02 MB / 0.5802 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01215/0.7846, allocations: 6.908 MB / 0.5869 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.786, allocations: 0.7668 MB / 0.5877 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007013/0.7867, allocations: 67.91 kB / 0.5877 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002085/0.7888, allocations: 103.9 kB / 0.5878 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006338/0.7895, allocations: 270.3 kB / 0.5881 GB, free: 99.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.7897, allocations: 95.97 kB / 0.5882 GB, free: 99.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01014/0.7998, allocations: 11.22 MB / 0.5991 GB, free: 88.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7998, allocations: 0 / 0.5991 GB, free: 88.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003724/0.8036, allocations: 1.098 MB / 0.6002 GB, free: 87.46 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.001174/0.8047, allocations: 0.4889 MB / 0.6007 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01011/0.8149, allocations: 4.866 MB / 0.6054 GB, free: 82.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.8149, allocations: 0 / 0.6054 GB, free: 82.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004067/0.819, allocations: 3.268 MB / 0.6086 GB, free: 78.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002994/0.822, allocations: 0.5729 MB / 0.6092 GB, free: 78.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01946/0.8415, allocations: 18.52 MB / 0.6273 GB, free: 59.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/0.8445, allocations: 4.05 MB / 0.6312 GB, free: 55.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/0.8457, allocations: 195.4 kB / 0.6314 GB, free: 55.42 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.8457, allocations: 0 / 0.6314 GB, free: 55.42 MB / 446.1 MB Notification: Performance of Templates: time 1.228/2.074, allocations: 0.5477 GB / 1.179 GB, free: 43.39 MB / 478.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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches