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.001844/0.001844, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002548/0.002548, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.581/2.581, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4947/0.4971, allocations: 50.54 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.02713/0.5243, allocations: 11.39 MB / 421.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.5416, allocations: 3.861 MB / 425.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003821/0.5455, allocations: 39.88 kB / 425.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01874/0.5643, allocations: 8.148 MB / 433.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.5759, allocations: 4.706 MB / 438.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003766/0.5798, allocations: 0.9244 MB / 439 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009834/0.5896, allocations: 5.405 MB / 444.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002574/0.5923, allocations: 0.9023 MB / 445.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006562/0.5989, allocations: 2.907 MB / 448.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008889/0.6078, allocations: 5.162 MB / 453.4 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001706/0.6096, allocations: 360 kB / 453.7 MB, free: 5.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.6114, allocations: 411.9 kB / 454.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002406/0.6139, allocations: 1.877 MB / 456 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00447/0.6184, allocations: 2.846 MB / 458.8 MB, free: 432 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.6297, allocations: 7.388 MB / 466.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.191e-05/0.6298, allocations: 0 / 466.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6298, allocations: 0 / 466.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002817/0.6301, allocations: 0 / 466.2 MB, free: 9.008 MB / 382.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.03225/0.6624, allocations: 7.733 MB / 474 MB, free: 1.168 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.6624, allocations: 15.97 kB / 474 MB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00367/0.6661, allocations: 0.9116 MB / 474.9 MB, free: 236 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009468/0.6756, allocations: 3.223 MB / 478.1 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002956/0.676, allocations: 164.2 kB / 478.3 MB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009464/0.677, allocations: 207.9 kB / 478.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.69, allocations: 2.093 MB / 480.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.6902, allocations: 4 kB / 480.6 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003349/0.6905, allocations: 88 kB / 480.7 MB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.529e-05/0.6906, allocations: 48 kB / 480.7 MB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007354/0.698, allocations: 1.856 MB / 482.6 MB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03191/0.7299, allocations: 8.957 MB / 491.5 MB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007527/0.7375, allocations: 2.321 MB / 493.8 MB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004909/0.7425, allocations: 1.391 MB / 495.2 MB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003053/0.7428, allocations: 42.27 kB / 495.3 MB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003993/0.7468, allocations: 1.132 MB / 496.4 MB, free: 10.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 1.011e-05/0.7469, allocations: 0 / 496.4 MB, free: 10.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.1291/0.876, allocations: 22.44 MB / 0.5067 GB, free: 3.457 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05085/0.9269, allocations: 13.69 MB / 0.5201 GB, free: 5.379 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03514/0.9621, allocations: 15.04 MB / 0.5348 GB, free: 6.328 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008614/0.963, allocations: 85.7 kB / 0.5348 GB, free: 6.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007247/0.9703, allocations: 3.777 MB / 0.5385 GB, free: 2.457 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002482/0.9728, allocations: 1.228 MB / 0.5397 GB, free: 1.211 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001865/0.9747, allocations: 0.5235 MB / 0.5402 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.9749, allocations: 301.1 kB / 0.5405 GB, free: 392 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3711/1.346, allocations: 1.224 MB / 0.5417 GB, free: 120.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/1.357, allocations: 1.601 MB / 0.5433 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.367, allocations: 2.972 MB / 0.5462 GB, free: 119.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.684e-05/1.368, allocations: 0 / 0.5462 GB, free: 119.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.02299/1.391, allocations: 5.198 MB / 0.5513 GB, free: 118.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/1.391, allocations: 11.47 kB / 0.5513 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/1.391, allocations: 3.969 kB / 0.5513 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01032/1.401, allocations: 1.403 MB / 0.5526 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004922/1.406, allocations: 0.5346 MB / 0.5532 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04318/1.449, allocations: 24.04 MB / 0.5766 GB, free: 96.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00563/1.455, allocations: 113.7 kB / 0.5767 GB, free: 96.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.456, allocations: 108.4 kB / 0.5769 GB, free: 96.31 MB / 462.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.005983/1.462, allocations: 2.207 MB / 0.579 GB, free: 94.25 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002091/1.464, allocations: 0.8287 MB / 0.5798 GB, free: 93.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01663/1.481, allocations: 5.198 MB / 0.5849 GB, free: 88.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.499e-05/1.481, allocations: 36 kB / 0.5849 GB, free: 88.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.158e-05/1.481, allocations: 8 kB / 0.5849 GB, free: 88.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-05/1.481, allocations: 19.92 kB / 0.585 GB, free: 88.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03479/1.516, allocations: 11.09 MB / 0.5958 GB, free: 77.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-05/1.516, allocations: 0 / 0.5958 GB, free: 77.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003987/1.52, allocations: 455.5 kB / 0.5962 GB, free: 76.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01015/1.53, allocations: 1.338 MB / 0.5975 GB, free: 75.53 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009434/1.531, allocations: 83.91 kB / 0.5976 GB, free: 75.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04075/1.572, allocations: 21.91 MB / 0.619 GB, free: 52.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04974/1.622, allocations: 12.02 MB / 0.6307 GB, free: 40 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02877/1.651, allocations: 6.903 MB / 0.6375 GB, free: 33 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002928/1.654, allocations: 0.7693 MB / 0.6382 GB, free: 32.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002021/1.656, allocations: 72.61 kB / 0.6383 GB, free: 32.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004382/1.66, allocations: 91.95 kB / 0.6384 GB, free: 32.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/1.662, allocations: 271.3 kB / 0.6386 GB, free: 31.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003531/1.662, allocations: 96.06 kB / 0.6387 GB, free: 31.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.02449/1.686, allocations: 11.23 MB / 0.6497 GB, free: 20.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.91e-07/1.686, allocations: 0 / 0.6497 GB, free: 20.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01125/1.698, allocations: 1.098 MB / 0.6508 GB, free: 19.38 MB / 462.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.002094/1.7, allocations: 0.5036 MB / 0.6513 GB, free: 19.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01574/1.716, allocations: 4.754 MB / 0.6559 GB, free: 14.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.406e-05/1.716, allocations: 3.938 kB / 0.6559 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007117/1.723, allocations: 3.26 MB / 0.6591 GB, free: 10.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006117/1.729, allocations: 0.5645 MB / 0.6596 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04255/1.772, allocations: 18.34 MB / 0.6775 GB, free: 7.863 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/1.782, allocations: 4.042 MB / 0.6815 GB, free: 3.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/1.784, allocations: 203.3 kB / 0.6817 GB, free: 3.578 MB / 478.1 MB Notification: Performance of SimCode: time 1.463e-06/1.784, allocations: 0 / 0.6817 GB, free: 3.578 MB / 478.1 MB Notification: Performance of Templates: time 2.937/4.721, allocations: 0.5491 GB / 1.231 GB, free: 112.4 MB / 0.545 GB 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