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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 176.4 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.3 MB / 241.4 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007897/0.0007898, allocations: 97.25 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004119/0.000412, allocations: 15.94 kB / 352.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1983, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1042/0.3025, allocations: 95.8 MB / 498.5 MB, free: 492 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.3028, allocations: 87.95 kB / 498.6 MB, free: 404 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3386/0.6414, allocations: 79.47 MB / 0.5646 GB, free: 48.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6414, allocations: 0 / 0.5646 GB, free: 48.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008794/0.6423, allocations: 120 kB / 0.5647 GB, free: 48.73 MB / 378.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.01277/0.6551, allocations: 6.834 MB / 0.5713 GB, free: 41.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.6552, allocations: 12.03 kB / 0.5714 GB, free: 41.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002087/0.6573, allocations: 0.8572 MB / 0.5722 GB, free: 40.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008281/0.6656, allocations: 4.014 MB / 0.5761 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.6658, allocations: 160.5 kB / 0.5763 GB, free: 36.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006494/0.6664, allocations: 208.3 kB / 0.5765 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005336/0.6718, allocations: 2.151 MB / 0.5786 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.591e-05/0.6719, allocations: 8.078 kB / 0.5786 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003693/0.6723, allocations: 91.94 kB / 0.5787 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.531e-05/0.6723, allocations: 48 kB / 0.5787 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004644/0.677, allocations: 1.993 MB / 0.5806 GB, free: 32.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02182/0.6989, allocations: 10.13 MB / 0.5905 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004485/0.7034, allocations: 2.403 MB / 0.5929 GB, free: 19.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.7062, allocations: 1.397 MB / 0.5943 GB, free: 17.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001759/0.7064, allocations: 42.22 kB / 0.5943 GB, free: 17.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/0.7088, allocations: 1.206 MB / 0.5955 GB, free: 16.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 7.644e-06/0.7089, allocations: 0 / 0.5955 GB, free: 16.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=378): time 0.05732/0.7662, allocations: 20.91 MB / 0.6159 GB, free: 11.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03054/0.7968, allocations: 13.16 MB / 0.6287 GB, free: 13.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.13/0.9267, allocations: 14.56 MB / 0.643 GB, free: 15.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006992/0.9275, allocations: 97.62 kB / 0.6431 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004982/0.9325, allocations: 3.721 MB / 0.6467 GB, free: 11.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001608/0.9341, allocations: 1.251 MB / 0.6479 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/0.9344, allocations: 68 kB / 0.648 GB, free: 10.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.9346, allocations: 437.2 kB / 0.6484 GB, free: 9.711 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002675/0.9373, allocations: 1.303 MB / 0.6497 GB, free: 8.406 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002752/0.9401, allocations: 1.662 MB / 0.6513 GB, free: 6.676 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005379/0.9454, allocations: 3.07 MB / 0.6543 GB, free: 3.551 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.9455, allocations: 0 / 0.6543 GB, free: 3.551 MB / 426.7 MB Notification: Performance of matching and sorting (n=439) (initialization): time 0.1931/1.139, allocations: 5.352 MB / 0.6595 GB, free: 103.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/1.139, allocations: 5.312 kB / 0.6595 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/1.139, allocations: 9.312 kB / 0.6595 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00508/1.144, allocations: 1.437 MB / 0.6609 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/1.147, allocations: 0.5546 MB / 0.6615 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02203/1.169, allocations: 22.1 MB / 0.6831 GB, free: 91.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003623/1.172, allocations: 171.2 kB / 0.6832 GB, free: 91.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004136/1.173, allocations: 119.6 kB / 0.6833 GB, free: 91.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.004145/1.177, allocations: 2.195 MB / 0.6855 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/1.179, allocations: 0.8494 MB / 0.6863 GB, free: 90.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01115/1.19, allocations: 5.483 MB / 0.6917 GB, free: 88.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/1.19, allocations: 34.25 kB / 0.6917 GB, free: 88.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/1.19, allocations: 9.562 kB / 0.6917 GB, free: 88.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/1.19, allocations: 18.09 kB / 0.6917 GB, free: 88.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02404/1.214, allocations: 13.85 MB / 0.7052 GB, free: 82.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.127e-05/1.214, allocations: 10.72 kB / 0.7053 GB, free: 82.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/1.216, allocations: 486.9 kB / 0.7057 GB, free: 82.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005205/1.222, allocations: 1.363 MB / 0.7071 GB, free: 82.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005545/1.222, allocations: 76.02 kB / 0.7071 GB, free: 82.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01913/1.241, allocations: 20.17 MB / 0.7268 GB, free: 65.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02219/1.264, allocations: 11.58 MB / 0.7381 GB, free: 54.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/1.277, allocations: 7.28 MB / 0.7452 GB, free: 47.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003267/1.281, allocations: 1.591 MB / 0.7468 GB, free: 46.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001522/1.282, allocations: 84 kB / 0.7469 GB, free: 46.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00271/1.285, allocations: 166.1 kB / 0.747 GB, free: 46.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006939/1.286, allocations: 282 kB / 0.7473 GB, free: 45.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001974/1.286, allocations: 98.75 kB / 0.7474 GB, free: 45.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01426/1.3, allocations: 10.88 MB / 0.758 GB, free: 36.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.3, allocations: 5.969 kB / 0.758 GB, free: 36.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005042/1.305, allocations: 1.652 MB / 0.7596 GB, free: 34.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 50,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001221/1.306, allocations: 0.5188 MB / 0.7602 GB, free: 34.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00715/1.314, allocations: 4.942 MB / 0.765 GB, free: 29.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.314, allocations: 4 kB / 0.765 GB, free: 29.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0046/1.318, allocations: 3.393 MB / 0.7683 GB, free: 26.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007387/1.326, allocations: 0.5569 MB / 0.7688 GB, free: 26.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02852/1.354, allocations: 21.2 MB / 0.7895 GB, free: 6.223 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005279/1.359, allocations: 4.026 MB / 0.7935 GB, free: 2.156 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002918/1.362, allocations: 0.8261 MB / 0.7943 GB, free: 1.383 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/1.364, allocations: 350.4 kB / 0.7946 GB, free: 1.039 MB / 426.7 MB Notification: Performance of SimCode: time 6.92e-07/1.364, allocations: 0 / 0.7946 GB, free: 1.039 MB / 426.7 MB Notification: Performance of Templates: time 0.4748/1.838, allocations: 81.29 MB / 0.874 GB, free: 110.7 MB / 458.7 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 -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","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches