Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001008, allocations: 200.9 kB / 18.1 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008555/0.0008555, allocations: 101.4 kB / 297.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002058/0.0002058, allocations: 7.984 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1872, allocations: 51.3 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09703/0.2843, allocations: 89.98 MB / 499.4 MB, free: 1.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.2846, allocations: 88.52 kB / 499.5 MB, free: 1.434 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Magnetic/FluxTubes/Examples/MovingCoilActuator/Components/ConstantActuator.mo:67:3-67:83:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.2465/0.5311, allocations: 36.81 MB / 0.5237 GB, free: 87.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5311, allocations: 0 / 0.5237 GB, free: 87.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.243e-05/0.5312, allocations: 21 kB / 0.5237 GB, free: 87.84 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.002319/0.5335, allocations: 1.234 MB / 0.5249 GB, free: 86.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.5336, allocations: 11.66 kB / 0.5249 GB, free: 86.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005321/0.5341, allocations: 145.3 kB / 0.5251 GB, free: 86.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008532/0.535, allocations: 0.6275 MB / 0.5257 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.5351, allocations: 77.78 kB / 0.5257 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.5353, allocations: 103.3 kB / 0.5258 GB, free: 86.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/0.5369, allocations: 1.036 MB / 0.5269 GB, free: 85.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/0.537, allocations: 7.938 kB / 0.5269 GB, free: 85.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/0.5371, allocations: 36 kB / 0.5269 GB, free: 85.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5371, allocations: 24 kB / 0.5269 GB, free: 85.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.5388, allocations: 0.9499 MB / 0.5279 GB, free: 84.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004242/0.5431, allocations: 3.575 MB / 0.5313 GB, free: 80.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.5443, allocations: 0.883 MB / 0.5322 GB, free: 79.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008273/0.5452, allocations: 0.5194 MB / 0.5327 GB, free: 79.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.605e-05/0.5452, allocations: 8.562 kB / 0.5327 GB, free: 79.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.5452, allocations: 55.05 kB / 0.5328 GB, free: 79.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 2.344e-06/0.5453, allocations: 0 / 0.5328 GB, free: 79.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.009284/0.5545, allocations: 5.088 MB / 0.5377 GB, free: 74.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.5546, allocations: 94.2 kB / 0.5378 GB, free: 73.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006574/0.5553, allocations: 0.6046 MB / 0.5384 GB, free: 73.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.5553, allocations: 49.7 kB / 0.5385 GB, free: 73.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5555, allocations: 418.8 kB / 0.5389 GB, free: 72.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.5558, allocations: 451.9 kB / 0.5393 GB, free: 72.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.5558, allocations: 24 kB / 0.5393 GB, free: 72.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.5559, allocations: 398.7 kB / 0.5397 GB, free: 71.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.5567, allocations: 450.4 kB / 0.5401 GB, free: 71.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008402/0.5576, allocations: 0.5903 MB / 0.5407 GB, free: 70.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.5592, allocations: 1.029 MB / 0.5417 GB, free: 69.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5592, allocations: 4 kB / 0.5417 GB, free: 69.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002167/0.5614, allocations: 1.372 MB / 0.5431 GB, free: 68.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.5614, allocations: 4 kB / 0.5431 GB, free: 68.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.5614, allocations: 4 kB / 0.5431 GB, free: 68.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003558/0.5618, allocations: 148.4 kB / 0.5432 GB, free: 68.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.5628, allocations: 295.6 kB / 0.5435 GB, free: 68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002638/0.5655, allocations: 4.781 MB / 0.5482 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007606/0.5662, allocations: 80.02 kB / 0.5482 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.94e-05/0.5663, allocations: 43.98 kB / 0.5483 GB, free: 62.7 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 (142): * Single equations (assignments): 139 * 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%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000416/0.5668, allocations: 285.7 kB / 0.5485 GB, free: 62.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.5669, allocations: 98.81 kB / 0.5486 GB, free: 62.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.5683, allocations: 0.8587 MB / 0.5495 GB, free: 61.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-06/0.5683, allocations: 12 kB / 0.5495 GB, free: 61.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.5684, allocations: 4 kB / 0.5495 GB, free: 61.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.5684, allocations: 7.969 kB / 0.5495 GB, free: 61.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003891/0.5723, allocations: 3.111 MB / 0.5525 GB, free: 58.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.5723, allocations: 4 kB / 0.5525 GB, free: 58.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009347/0.5732, allocations: 259.9 kB / 0.5528 GB, free: 57.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002856/0.5735, allocations: 126.5 kB / 0.5529 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/0.5736, allocations: 35.92 kB / 0.5529 GB, free: 57.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002179/0.5758, allocations: 4.388 MB / 0.5572 GB, free: 53.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5758, allocations: 7.922 kB / 0.5572 GB, free: 53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002791/0.5786, allocations: 2.035 MB / 0.5592 GB, free: 50.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.5788, allocations: 172 kB / 0.5594 GB, free: 50.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.579, allocations: 35.92 kB / 0.5594 GB, free: 50.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/0.5796, allocations: 75.95 kB / 0.5595 GB, free: 50.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.5798, allocations: 96.41 kB / 0.5596 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.5799, allocations: 36 kB / 0.5596 GB, free: 50.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004647/0.5803, allocations: 443.1 kB / 0.56 GB, free: 50.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5803, allocations: 0 / 0.56 GB, free: 50.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009542/0.5813, allocations: 276 kB / 0.5603 GB, free: 49.78 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.i,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 (122): * Single equations (assignments): 119 * 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%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000238/0.5815, allocations: 158.5 kB / 0.5605 GB, free: 49.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.5837, allocations: 1.528 MB / 0.562 GB, free: 48.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5837, allocations: 0 / 0.562 GB, free: 48.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5849, allocations: 0.9847 MB / 0.5629 GB, free: 47.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.586, allocations: 181.6 kB / 0.5631 GB, free: 46.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.5894, allocations: 2.821 MB / 0.5658 GB, free: 43.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.5898, allocations: 1.04 MB / 0.5669 GB, free: 42.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005647/0.5904, allocations: 119.9 kB / 0.567 GB, free: 42.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.5906, allocations: 83.41 kB / 0.5671 GB, free: 42.71 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5906, allocations: 0 / 0.5671 GB, free: 42.71 MB / 378.7 MB Notification: Performance of Templates: time 0.0166/0.6072, allocations: 11.75 MB / 0.5785 GB, free: 31.04 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches