Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 115.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001893/0.001893, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.654/2.654, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4869/0.489, allocations: 49.43 MB / 401.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01417/0.5033, allocations: 6.304 MB / 407.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005942/0.5093, allocations: 1.85 MB / 409.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.5108, allocations: 19.94 kB / 409.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.512, allocations: 210.1 kB / 409.8 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002098/0.5141, allocations: 408.8 kB / 410.2 MB, free: 216 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.5154, allocations: 375.5 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002878/0.5183, allocations: 1.483 MB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.5195, allocations: 0.513 MB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.5209, allocations: 0.5412 MB / 413.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.5224, allocations: 0.5952 MB / 413.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004421/0.5229, allocations: 160 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004691/0.5234, allocations: 160 kB / 414 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004328/0.5238, allocations: 303 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001242/0.5251, allocations: 0.6457 MB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003642/0.5287, allocations: 1.851 MB / 416.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.427e-05/0.5288, allocations: 0 / 416.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.5288, allocations: 3.938 kB / 416.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.691e-05/0.5289, allocations: 0 / 416.8 MB, free: 9.562 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.005937/0.5348, allocations: 1.438 MB / 418.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.714e-05/0.5349, allocations: 11.97 kB / 418.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003965/0.5353, allocations: 123.5 kB / 418.4 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.5377, allocations: 0.6728 MB / 419 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.5378, allocations: 78.38 kB / 419.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002801/0.5381, allocations: 100.3 kB / 419.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003132/0.5412, allocations: 1.013 MB / 420.2 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.399e-05/0.5413, allocations: 0 / 420.2 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.5415, allocations: 36 kB / 420.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/0.5415, allocations: 24 kB / 420.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002899/0.5444, allocations: 0.8718 MB / 421.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009664/0.5541, allocations: 3.29 MB / 424.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002772/0.5569, allocations: 0.8166 MB / 425.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.5587, allocations: 471.8 kB / 425.7 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.935e-05/0.5588, allocations: 20.42 kB / 425.7 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/0.5589, allocations: 43.12 kB / 425.8 MB, free: 312 kB / 334.1 MB Notification: Performance of pre-optimization done (n=91): time 5.039e-06/0.5589, allocations: 0 / 425.8 MB, free: 312 kB / 334.1 MB Notification: Performance of matching and sorting (n=115): time 0.01881/0.5777, allocations: 4.305 MB / 430.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.5779, allocations: 93.7 kB / 430.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.5798, allocations: 0.6046 MB / 430.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002739/0.5801, allocations: 45.64 kB / 430.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000569/0.5807, allocations: 420.2 kB / 431.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008204/0.5815, allocations: 394.2 kB / 431.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007513/0.5823, allocations: 186.9 kB / 431.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0004336/0.5827, allocations: 394.7 kB / 432.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.5845, allocations: 378.4 kB / 432.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.5864, allocations: 0.5081 MB / 433.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003073/0.5895, allocations: 0.8809 MB / 433.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.5895, allocations: 0 / 433.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004607/0.5941, allocations: 1.2 MB / 435.1 MB, free: 6.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/0.5942, allocations: 11.94 kB / 435.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5942, allocations: 0 / 435.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/0.5952, allocations: 134.6 kB / 435.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002178/0.5974, allocations: 247.7 kB / 435.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007236/0.6046, allocations: 4.973 MB / 440.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.6064, allocations: 56.03 kB / 440.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003157/0.6068, allocations: 35.98 kB / 440.6 MB, free: 0.7109 MB / 350.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 (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.001327/0.6081, allocations: 283.2 kB / 440.9 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006009/0.6087, allocations: 86.97 kB / 441 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003579/0.6123, allocations: 0.78 MB / 441.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.358e-05/0.6124, allocations: 12 kB / 441.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.688e-05/0.6125, allocations: 4 kB / 441.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.651e-05/0.6125, allocations: 3.984 kB / 441.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.6227, allocations: 2.644 MB / 444.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.418e-05/0.6228, allocations: 4 kB / 444.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/0.6246, allocations: 203.7 kB / 444.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009303/0.6255, allocations: 155.4 kB / 444.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.6257, allocations: 27.98 kB / 444.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008039/0.6338, allocations: 5.986 MB / 450.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/0.6338, allocations: 7.969 kB / 450.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006492/0.6403, allocations: 1.749 MB / 452.5 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005851/0.641, allocations: 160.1 kB / 452.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003978/0.6414, allocations: 24 kB / 452.7 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.6427, allocations: 47.95 kB / 452.7 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003213/0.643, allocations: 84.47 kB / 452.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.6432, allocations: 31.98 kB / 452.9 MB, free: 3.691 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.6442, allocations: 443.1 kB / 453.3 MB, free: 3.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6442, allocations: 0 / 453.3 MB, free: 3.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001939/0.6462, allocations: 256 kB / 453.5 MB, free: 3.008 MB / 366.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 (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.0003495/0.6466, allocations: 141.3 kB / 453.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004083/0.6507, allocations: 1.349 MB / 455 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.6507, allocations: 0 / 455 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002774/0.6535, allocations: 0.9978 MB / 456 MB, free: 428 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.6559, allocations: 177 kB / 456.2 MB, free: 260 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008063/0.664, allocations: 2.183 MB / 458.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.6652, allocations: 1.024 MB / 459.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006402/0.6659, allocations: 87.41 kB / 459.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6659, allocations: 0 / 459.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of Templates: time 0.06722/0.7331, allocations: 29.22 MB / 488.7 MB, free: 15.66 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches