Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008024/0.0008021, allocations: 96.14 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002616, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3568, allocations: 86.87 MB / 462.7 MB, free: 9.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.3571, allocations: 83.95 kB / 462.8 MB, free: 9.699 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.09396/0.4511, allocations: 35.9 MB / 498.7 MB, free: 5.656 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4511, allocations: 0 / 498.7 MB, free: 5.656 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.331e-05/0.4512, allocations: 23.98 kB / 498.7 MB, free: 5.633 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002534/0.4537, allocations: 1.236 MB / 499.9 MB, free: 4.344 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.4538, allocations: 12.02 kB / 499.9 MB, free: 4.332 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.454, allocations: 126.5 kB / 0.4883 GB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00092/0.4549, allocations: 0.5979 MB / 0.4889 GB, free: 3.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.455, allocations: 81.98 kB / 0.489 GB, free: 3.488 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.4552, allocations: 103.9 kB / 0.4891 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001929/0.4571, allocations: 1.032 MB / 0.4901 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.314e-05/0.4572, allocations: 7.906 kB / 0.4901 GB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.976e-05/0.4573, allocations: 40 kB / 0.4902 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.4573, allocations: 24 kB / 0.4902 GB, free: 2.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.4592, allocations: 0.9382 MB / 0.4911 GB, free: 1.336 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1768/0.636, allocations: 3.555 MB / 0.4946 GB, free: 96.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.6375, allocations: 0.8803 MB / 0.4954 GB, free: 96.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.432e-05/0.6376, allocations: 12.16 kB / 0.4954 GB, free: 96.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.6376, allocations: 45.5 kB / 0.4955 GB, free: 96.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 3.687e-06/0.6376, allocations: 5.141 kB / 0.4955 GB, free: 96.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.009645/0.6473, allocations: 4.764 MB / 0.5001 GB, free: 95.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.6474, allocations: 92.89 kB / 0.5002 GB, free: 95.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008119/0.6482, allocations: 0.5447 MB / 0.5008 GB, free: 95.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.6483, allocations: 45.17 kB / 0.5008 GB, free: 95.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.6485, allocations: 415.2 kB / 0.5012 GB, free: 95.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.6487, allocations: 425.2 kB / 0.5016 GB, free: 94.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.6488, allocations: 24.59 kB / 0.5016 GB, free: 94.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.6489, allocations: 394.4 kB / 0.502 GB, free: 94.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008301/0.6497, allocations: 432.5 kB / 0.5024 GB, free: 94.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008651/0.6506, allocations: 0.5595 MB / 0.503 GB, free: 94.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008211/0.6514, allocations: 483.9 kB / 0.5034 GB, free: 94.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6515, allocations: 0 / 0.5034 GB, free: 94.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002141/0.6536, allocations: 1.309 MB / 0.5047 GB, free: 94.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.6536, allocations: 7.656 kB / 0.5047 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.6537, allocations: 3.719 kB / 0.5047 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/0.654, allocations: 131.2 kB / 0.5048 GB, free: 94.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.655, allocations: 276.2 kB / 0.5051 GB, free: 94.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/0.6577, allocations: 4.554 MB / 0.5095 GB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008569/0.6585, allocations: 77.86 kB / 0.5096 GB, free: 90.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.6586, allocations: 40.78 kB / 0.5097 GB, free: 90.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004889/0.6591, allocations: 289.3 kB / 0.5099 GB, free: 90.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.6593, allocations: 94.97 kB / 0.51 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.6607, allocations: 0.8311 MB / 0.5108 GB, free: 89.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.6607, allocations: 10.66 kB / 0.5108 GB, free: 89.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/0.6607, allocations: 11.52 kB / 0.5109 GB, free: 89.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.6607, allocations: 7.406 kB / 0.5109 GB, free: 89.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.6648, allocations: 3.012 MB / 0.5138 GB, free: 88.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6648, allocations: 3.844 kB / 0.5138 GB, free: 88.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008911/0.6657, allocations: 232.5 kB / 0.514 GB, free: 88.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003837/0.6661, allocations: 155.6 kB / 0.5142 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-05/0.6662, allocations: 31.12 kB / 0.5142 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002806/0.669, allocations: 5.624 MB / 0.5197 GB, free: 82.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.669, allocations: 7.75 kB / 0.5197 GB, free: 82.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/0.6719, allocations: 2.095 MB / 0.5218 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.6722, allocations: 166 kB / 0.5219 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.6724, allocations: 27.38 kB / 0.5219 GB, free: 81.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006661/0.673, allocations: 75.88 kB / 0.522 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.6732, allocations: 93.7 kB / 0.5221 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.6733, allocations: 38.59 kB / 0.5221 GB, free: 81.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004887/0.6738, allocations: 444.8 kB / 0.5226 GB, free: 80.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6738, allocations: 3.594 kB / 0.5226 GB, free: 80.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009606/0.6747, allocations: 267.6 kB / 0.5228 GB, free: 80.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002341/0.675, allocations: 156.6 kB / 0.523 GB, free: 80.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.6772, allocations: 1.452 MB / 0.5244 GB, free: 80.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.6772, allocations: 4 kB / 0.5244 GB, free: 80.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00149/0.6787, allocations: 1.093 MB / 0.5255 GB, free: 79.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.6798, allocations: 166.8 kB / 0.5256 GB, free: 79.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.6836, allocations: 2.753 MB / 0.5283 GB, free: 77.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.6841, allocations: 1.051 MB / 0.5293 GB, free: 76.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00061/0.6847, allocations: 124.4 kB / 0.5295 GB, free: 76.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.685, allocations: 77.78 kB / 0.5295 GB, free: 76.91 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.685, allocations: 0 / 0.5295 GB, free: 76.91 MB / 378.7 MB Notification: Performance of Templates: time 0.01705/0.7021, allocations: 11.59 MB / 0.5409 GB, free: 71.81 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches