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/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.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/ModelicaServices trunk/package.mo): time 0.001934/0.001934, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002459/0.002459, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.787/2.787, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002476/0.002476, allocations: 63.88 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5138/0.5163, allocations: 50.53 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.0144/0.5308, allocations: 6.432 MB / 416.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007253/0.5381, allocations: 1.905 MB / 418.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.5401, allocations: 19.94 kB / 418.3 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.5417, allocations: 218 kB / 418.5 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002783/0.5445, allocations: 412.7 kB / 418.9 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.5463, allocations: 375.5 kB / 419.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003663/0.55, allocations: 1.503 MB / 420.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.5516, allocations: 0.5053 MB / 421.3 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001707/0.5534, allocations: 0.5645 MB / 421.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.5552, allocations: 0.599 MB / 422.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008553/0.5561, allocations: 164 kB / 422.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000832/0.557, allocations: 183.9 kB / 422.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005028/0.5575, allocations: 299.1 kB / 423.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001503/0.5591, allocations: 0.6611 MB / 423.7 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003726/0.5628, allocations: 1.886 MB / 425.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.398e-06/0.5629, allocations: 0 / 425.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.243e-06/0.5629, allocations: 4 kB / 425.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.038e-05/0.563, allocations: 0 / 425.6 MB, free: 1.809 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.006584/0.5696, allocations: 1.441 MB / 427.1 MB, free: 324 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.5697, allocations: 12.03 kB / 427.1 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.5708, allocations: 147.5 kB / 427.2 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002759/0.5736, allocations: 0.6957 MB / 427.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.5738, allocations: 74 kB / 428 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003945/0.5742, allocations: 104 kB / 428.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00366/0.5779, allocations: 0.9662 MB / 429 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.285e-05/0.578, allocations: 7.906 kB / 429.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.5782, allocations: 40 kB / 429.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.5783, allocations: 24 kB / 429.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003126/0.5814, allocations: 0.8015 MB / 429.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02665/0.6081, allocations: 3.305 MB / 433.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.6106, allocations: 0.8071 MB / 434 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.6121, allocations: 445.4 kB / 434.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.6122, allocations: 20.42 kB / 434.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.316e-05/0.6123, allocations: 47.75 kB / 434.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 5.681e-06/0.6123, allocations: 4 kB / 434.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.01744/0.6298, allocations: 4.173 MB / 438.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.6299, allocations: 93.77 kB / 438.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.6317, allocations: 0.6369 MB / 439.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002145/0.6319, allocations: 45.7 kB / 439.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005156/0.6325, allocations: 432.1 kB / 439.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006644/0.6331, allocations: 410 kB / 440.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006407/0.6338, allocations: 182.9 kB / 440.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.6341, allocations: 402.7 kB / 440.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.6355, allocations: 346.5 kB / 441.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.6369, allocations: 492.6 kB / 441.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002739/0.6397, allocations: 0.8548 MB / 442.6 MB, free: 284 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.6398, allocations: 7.938 kB / 442.6 MB, free: 276 kB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00422/0.644, allocations: 1.146 MB / 443.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.6441, allocations: 4 kB / 443.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.6441, allocations: 4 kB / 443.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.6449, allocations: 138.7 kB / 443.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/0.6468, allocations: 235.7 kB / 444.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006749/0.6536, allocations: 4.976 MB / 449.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.6552, allocations: 44.08 kB / 449.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002802/0.6555, allocations: 36 kB / 449.1 MB, free: 9.246 MB / 366.1 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 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001035/0.6566, allocations: 285.5 kB / 449.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004726/0.6571, allocations: 99 kB / 449.5 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/0.66, allocations: 0.7453 MB / 450.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.6601, allocations: 12 kB / 450.3 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-05/0.6601, allocations: 4 kB / 450.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-05/0.6602, allocations: 7.984 kB / 450.3 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008542/0.6687, allocations: 2.611 MB / 452.9 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-05/0.6688, allocations: 3.938 kB / 452.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/0.6706, allocations: 195.7 kB / 453.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009328/0.6715, allocations: 159.3 kB / 453.2 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.6718, allocations: 24 kB / 453.3 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007381/0.6792, allocations: 5.99 MB / 459.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.6792, allocations: 0 / 459.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005518/0.6848, allocations: 1.664 MB / 460.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008742/0.6857, allocations: 256.1 kB / 461.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/0.686, allocations: 24 kB / 461.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.6873, allocations: 35.97 kB / 461.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003515/0.6877, allocations: 88.42 kB / 461.3 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.6878, allocations: 28 kB / 461.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00134/0.6892, allocations: 463 kB / 461.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6892, allocations: 0 / 461.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002052/0.6913, allocations: 260 kB / 462 MB, free: 11.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004006/0.6917, allocations: 131.2 kB / 462.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004388/0.6961, allocations: 1.282 MB / 463.5 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/0.6962, allocations: 0.625 kB / 463.5 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002739/0.6989, allocations: 0.9783 MB / 464.4 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01459/0.7135, allocations: 202.4 kB / 464.6 MB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.7255, allocations: 2.197 MB / 466.8 MB, free: 6.652 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.7267, allocations: 1.04 MB / 467.9 MB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005038/0.7318, allocations: 91.34 kB / 468 MB, free: 5.496 MB / 382.1 MB Notification: Performance of SimCode: time 2.384e-06/0.7318, allocations: 4 kB / 468 MB, free: 5.492 MB / 382.1 MB Notification: Performance of Templates: time 0.1134/0.8452, allocations: 30.25 MB / 498.2 MB, free: 7.246 MB / 414.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches