Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002407/0.002407, allocations: 184.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.446/2.446, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001144/0.001144, allocations: 96.62 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006219/0.0006223, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3956, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01108/0.4067, allocations: 5.02 MB / 379.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006125/0.4129, allocations: 1.837 MB / 381.4 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.4145, allocations: 19.28 kB / 381.4 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.4158, allocations: 159.8 kB / 381.6 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002702/0.4186, allocations: 421.9 kB / 382 MB, free: 39.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.4201, allocations: 210.8 kB / 382.2 MB, free: 39.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.4233, allocations: 0.9112 MB / 383.1 MB, free: 38.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.4246, allocations: 371.3 kB / 383.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.4261, allocations: 421 kB / 383.9 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.4276, allocations: 497.1 kB / 384.4 MB, free: 38.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004898/0.4281, allocations: 64.66 kB / 384.4 MB, free: 38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006525/0.4288, allocations: 61.09 kB / 384.5 MB, free: 38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003116/0.4291, allocations: 193.4 kB / 384.7 MB, free: 37.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005525/0.4297, allocations: 243 kB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002773/0.4325, allocations: 1.46 MB / 386.4 MB, free: 36.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.4326, allocations: 4 kB / 386.4 MB, free: 36.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.018e-06/0.4326, allocations: 1.5 kB / 386.4 MB, free: 36.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.234e-05/0.4327, allocations: 0 / 386.4 MB, free: 36.52 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.006441/0.4391, allocations: 1.29 MB / 387.7 MB, free: 35.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.4392, allocations: 8.75 kB / 387.7 MB, free: 35.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000645/0.4399, allocations: 119.5 kB / 387.8 MB, free: 35.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.4426, allocations: 0.6563 MB / 388.4 MB, free: 34.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.4429, allocations: 78 kB / 388.5 MB, free: 34.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004046/0.4433, allocations: 96 kB / 388.6 MB, free: 34.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004615/0.448, allocations: 1.017 MB / 389.6 MB, free: 33.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.819e-05/0.4481, allocations: 7.906 kB / 389.6 MB, free: 33.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.4484, allocations: 36 kB / 389.7 MB, free: 33.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.4484, allocations: 28 kB / 389.7 MB, free: 33.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005016/0.4535, allocations: 0.9109 MB / 390.6 MB, free: 32.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01147/0.465, allocations: 3.353 MB / 394 MB, free: 29.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003402/0.4685, allocations: 0.8382 MB / 394.8 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/0.4686, allocations: 16.55 kB / 394.8 MB, free: 28.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.4687, allocations: 43.11 kB / 394.9 MB, free: 28.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 5.681e-06/0.4687, allocations: 0 / 394.9 MB, free: 28.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=115): time 0.02491/0.4936, allocations: 4.432 MB / 399.3 MB, free: 23.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/0.4938, allocations: 93.7 kB / 399.4 MB, free: 23.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001958/0.4957, allocations: 0.6007 MB / 400 MB, free: 22.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003236/0.4961, allocations: 41.7 kB / 400 MB, free: 22.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004307/0.4966, allocations: 454.6 kB / 400.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006887/0.4973, allocations: 390.2 kB / 400.8 MB, free: 22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.4975, allocations: 24 kB / 400.9 MB, free: 21.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.4976, allocations: 358.7 kB / 401.2 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.5002, allocations: 398.4 kB / 401.6 MB, free: 21.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002679/0.5029, allocations: 0.5237 MB / 402.1 MB, free: 20.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.5056, allocations: 451.8 kB / 402.6 MB, free: 20.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.5056, allocations: 8 kB / 402.6 MB, free: 20.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.006318/0.512, allocations: 1.173 MB / 403.8 MB, free: 19.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.5121, allocations: 12.19 kB / 403.8 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.5121, allocations: 0 / 403.8 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008562/0.513, allocations: 130.4 kB / 403.9 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/0.516, allocations: 259.7 kB / 404.1 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/0.5228, allocations: 4.564 MB / 408.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/0.525, allocations: 64.03 kB / 408.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/0.5253, allocations: 39.98 kB / 408.8 MB, free: 13.56 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_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 initialization (128): * Single equations (assignments): 125 * 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.001172/0.5265, allocations: 282.2 kB / 409.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000475/0.527, allocations: 94.91 kB / 409.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004173/0.5311, allocations: 0.784 MB / 410 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.869e-05/0.5312, allocations: 15.98 kB / 410 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.123e-05/0.5313, allocations: 4 kB / 410 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.143e-05/0.5313, allocations: 3.984 kB / 410 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.5447, allocations: 2.694 MB / 412.7 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.513e-05/0.5448, allocations: 4 kB / 412.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003209/0.5481, allocations: 215.8 kB / 412.9 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.5496, allocations: 159.3 kB / 413.1 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003516/0.55, allocations: 27.92 kB / 413.1 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/0.5611, allocations: 5.604 MB / 418.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.5612, allocations: 0 / 418.7 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/0.573, allocations: 1.835 MB / 420.5 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006482/0.5737, allocations: 156.1 kB / 420.7 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005632/0.5743, allocations: 27.98 kB / 420.7 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002806/0.5771, allocations: 63.97 kB / 420.8 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006474/0.5778, allocations: 76.39 kB / 420.8 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003134/0.5782, allocations: 35.98 kB / 420.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002402/0.5806, allocations: 439.1 kB / 421.3 MB, free: 332 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.5807, allocations: 0 / 421.3 MB, free: 332 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.005217/0.5859, allocations: 256 kB / 421.5 MB, free: 76 kB / 298.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 (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%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007801/0.5868, allocations: 134.3 kB / 421.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/0.5977, allocations: 1.373 MB / 423.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/0.5978, allocations: 0 / 423.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004205/0.602, allocations: 1.025 MB / 424.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.6046, allocations: 167.1 kB / 424.2 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009236/0.6139, allocations: 2.679 MB / 426.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008984/0.6148, allocations: 1.044 MB / 428 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006854/0.6155, allocations: 87.39 kB / 428 MB, free: 9.402 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6156, allocations: 0 / 428 MB, free: 9.402 MB / 314.7 MB Notification: Performance of Templates: time 0.0497/0.6653, allocations: 27.47 MB / 455.5 MB, free: 13.88 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches