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.001105/0.001105, allocations: 187 kB / 17.92 MB, free: 3.855 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.191/1.191, allocations: 205.1 MB / 223.7 MB, free: 8.469 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.0008757/0.0008758, allocations: 96.59 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008196/0.0008198, allocations: 35.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1979, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005905/0.2038, allocations: 6.222 MB / 380 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.2061, allocations: 1.837 MB / 381.9 MB, free: 39.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003316/0.2065, allocations: 20.16 kB / 381.9 MB, free: 39.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004516/0.207, allocations: 170.3 kB / 382.1 MB, free: 39.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005776/0.2076, allocations: 344.3 kB / 382.4 MB, free: 38.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004299/0.208, allocations: 346.9 kB / 382.7 MB, free: 38.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.2091, allocations: 1.39 MB / 384.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.2096, allocations: 450.8 kB / 384.6 MB, free: 37.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003784/0.21, allocations: 467.5 kB / 385 MB, free: 37.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.2104, allocations: 0.5419 MB / 385.6 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.2106, allocations: 76.19 kB / 385.7 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.2108, allocations: 76.75 kB / 385.7 MB, free: 36.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.2109, allocations: 225 kB / 385.9 MB, free: 36.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004019/0.2113, allocations: 0.5609 MB / 386.5 MB, free: 36.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.2124, allocations: 1.77 MB / 388.3 MB, free: 34.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2124, allocations: 0 / 388.3 MB, free: 34.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2124, allocations: 0 / 388.3 MB, free: 34.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.2124, allocations: 1.312 kB / 388.3 MB, free: 34.89 MB / 298.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.002338/0.2148, allocations: 1.452 MB / 389.7 MB, free: 33.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.2148, allocations: 12.03 kB / 389.7 MB, free: 33.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.215, allocations: 119.5 kB / 389.9 MB, free: 33.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000781/0.2158, allocations: 0.6611 MB / 390.5 MB, free: 32.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.246e-05/0.2159, allocations: 78.56 kB / 390.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.216, allocations: 100.3 kB / 390.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.2173, allocations: 1.009 MB / 391.7 MB, free: 31.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.2174, allocations: 0 / 391.7 MB, free: 31.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.811e-05/0.2175, allocations: 40 kB / 391.7 MB, free: 31.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.2175, allocations: 24 kB / 391.8 MB, free: 31.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.219, allocations: 0.8756 MB / 392.6 MB, free: 30.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.2225, allocations: 3.336 MB / 396 MB, free: 27.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.2237, allocations: 0.8156 MB / 396.8 MB, free: 26.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006821/0.2243, allocations: 471.1 kB / 397.3 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.958e-05/0.2244, allocations: 25.12 kB / 397.3 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2244, allocations: 47.06 kB / 397.3 MB, free: 25.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 2.013e-06/0.2244, allocations: 0 / 397.3 MB, free: 25.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=115): time 0.00722/0.2317, allocations: 4.293 MB / 401.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.2317, allocations: 89.77 kB / 401.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/0.2323, allocations: 0.6007 MB / 402.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.2323, allocations: 45.7 kB / 402.4 MB, free: 20.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.2325, allocations: 432.2 kB / 402.8 MB, free: 19.99 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.2327, allocations: 398.2 kB / 403.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.2329, allocations: 186.8 kB / 403.3 MB, free: 19.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.901e-05/0.233, allocations: 394.7 kB / 403.7 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006626/0.2337, allocations: 378.4 kB / 404.1 MB, free: 18.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007166/0.2344, allocations: 0.5158 MB / 404.6 MB, free: 18.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.2357, allocations: 0.8927 MB / 405.5 MB, free: 17.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2357, allocations: 0 / 405.5 MB, free: 17.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001784/0.2375, allocations: 1.188 MB / 406.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.2376, allocations: 8 kB / 406.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.2376, allocations: 3.984 kB / 406.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003146/0.2379, allocations: 126.7 kB / 406.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008699/0.2388, allocations: 259.6 kB / 407.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/0.2411, allocations: 4.516 MB / 411.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.2417, allocations: 51.97 kB / 411.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.2417, allocations: 44.05 kB / 411.7 MB, free: 10.55 MB / 298.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 (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 (128): * Single equations (assignments): 125 * 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.0003096/0.2421, allocations: 269.7 kB / 412 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.2422, allocations: 86.97 kB / 412 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.2434, allocations: 0.7722 MB / 412.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.2435, allocations: 12 kB / 412.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.2435, allocations: 4 kB / 412.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.2435, allocations: 7.984 kB / 412.8 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003053/0.2465, allocations: 2.671 MB / 415.5 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2466, allocations: 0 / 415.5 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007569/0.2473, allocations: 195.8 kB / 415.7 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003378/0.2477, allocations: 167.3 kB / 415.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.2477, allocations: 27.98 kB / 415.9 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002468/0.2502, allocations: 5.576 MB / 421.5 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2502, allocations: 0 / 421.5 MB, free: 104 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/0.2645, allocations: 11.42 MB / 432.9 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.2647, allocations: 168.1 kB / 433.1 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.623e-05/0.2648, allocations: 31.94 kB / 433.1 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.2654, allocations: 43.97 kB / 433.1 MB, free: 3.801 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.2656, allocations: 80.38 kB / 433.2 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-05/0.2656, allocations: 32 kB / 433.2 MB, free: 3.691 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005446/0.2662, allocations: 443.1 kB / 433.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2662, allocations: 0 / 433.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00121/0.2674, allocations: 356 kB / 434 MB, free: 2.91 MB / 314.7 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 (104): * Single equations (assignments): 100 * 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.0002002/0.2676, allocations: 129.1 kB / 434.1 MB, free: 2.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.2698, allocations: 1.334 MB / 435.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2698, allocations: 0 / 435.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.2711, allocations: 1.006 MB / 436.5 MB, free: 356 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009016/0.272, allocations: 167 kB / 436.6 MB, free: 192 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004393/0.2764, allocations: 3.603 MB / 440.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.277, allocations: 1.052 MB / 441.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005495/0.2776, allocations: 131.5 kB / 441.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.2778, allocations: 87.39 kB / 441.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2778, allocations: 3.938 kB / 441.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of Templates: time 0.02019/0.298, allocations: 13.98 MB / 455.5 MB, free: 13.23 MB / 346.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@2/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