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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 106.2 kB / 18.25 MB, free: 4.773 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.00177/0.00177, allocations: 195.3 kB / 19.19 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 47.94 kB / 281.3 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08828, allocations: 46.63 MB / 327.9 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007611/0.09593, allocations: 6.238 MB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003541/0.0995, allocations: 1.866 MB / 336.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001035/0.1006, allocations: 16 kB / 336.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008947/0.1015, allocations: 222 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.1033, allocations: 396.8 kB / 336.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009978/0.1043, allocations: 375.4 kB / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00233/0.1067, allocations: 1.476 MB / 338.5 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009134/0.1076, allocations: 0.5054 MB / 339 MB, free: 9.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009146/0.1085, allocations: 0.5294 MB / 339.5 MB, free: 8.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001029/0.1096, allocations: 0.603 MB / 340.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003607/0.1099, allocations: 160 kB / 340.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004131/0.1104, allocations: 160 kB / 340.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003461/0.1107, allocations: 299.1 kB / 340.8 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009899/0.1117, allocations: 0.6495 MB / 341.4 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00171/0.1134, allocations: 1.83 MB / 343.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1134, allocations: 0 / 343.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1135, allocations: 4 kB / 343.2 MB, free: 5.094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.1135, allocations: 0 / 343.2 MB, free: 5.094 MB / 286.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.003049/0.1165, allocations: 1.446 MB / 344.7 MB, free: 3.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1166, allocations: 8.031 kB / 344.7 MB, free: 3.586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002159/0.1168, allocations: 119.5 kB / 344.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.118, allocations: 0.6689 MB / 345.5 MB, free: 2.762 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.1181, allocations: 78.56 kB / 345.6 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001424/0.1183, allocations: 104.3 kB / 345.7 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.1202, allocations: 1.001 MB / 346.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/0.1202, allocations: 15.83 kB / 346.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.061e-05/0.1203, allocations: 36 kB / 346.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.1204, allocations: 24 kB / 346.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.1223, allocations: 0.8757 MB / 347.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/0.1272, allocations: 3.332 MB / 350.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1287, allocations: 0.8152 MB / 351.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008783/0.1296, allocations: 483.1 kB / 352.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.1297, allocations: 13.14 kB / 352.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.1297, allocations: 43.06 kB / 352.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 4.207e-06/0.1297, allocations: 3.984 kB / 352.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009629/0.1394, allocations: 4.306 MB / 356.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.1395, allocations: 89.77 kB / 356.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008493/0.1403, allocations: 0.6007 MB / 357.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.357e-05/0.1404, allocations: 45.7 kB / 357.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.1407, allocations: 428.1 kB / 357.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.1411, allocations: 394.2 kB / 358.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/0.1414, allocations: 178.9 kB / 358.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1416, allocations: 398.7 kB / 358.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008925/0.1425, allocations: 382.4 kB / 359.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009897/0.1435, allocations: 0.5158 MB / 359.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.1452, allocations: 0.8848 MB / 360.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1452, allocations: 0 / 360.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002526/0.1478, allocations: 1.196 MB / 361.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1478, allocations: 8 kB / 361.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1478, allocations: 4 kB / 361.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004122/0.1482, allocations: 126.5 kB / 361.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.1493, allocations: 255.6 kB / 362 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00423/0.1536, allocations: 4.973 MB / 367 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007954/0.1544, allocations: 52.02 kB / 367.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.008e-05/0.1545, allocations: 43.92 kB / 367.1 MB, free: 12.17 MB / 318.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.0004537/0.155, allocations: 269.7 kB / 367.4 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002113/0.1552, allocations: 86.97 kB / 367.5 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.1568, allocations: 0.7722 MB / 368.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.1568, allocations: 8 kB / 368.2 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.1568, allocations: 8 kB / 368.3 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.1569, allocations: 11.91 kB / 368.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00451/0.1614, allocations: 2.663 MB / 370.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.1614, allocations: 0 / 370.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009231/0.1623, allocations: 207.7 kB / 371.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.1628, allocations: 159.4 kB / 371.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.646e-05/0.1629, allocations: 27.98 kB / 371.3 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004542/0.1674, allocations: 5.998 MB / 377.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1675, allocations: 3.984 kB / 377.3 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1576/0.3251, allocations: 1.74 MB / 379.1 MB, free: 51.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003582/0.3255, allocations: 162 kB / 379.2 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003355/0.3258, allocations: 25.28 kB / 379.2 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000842/0.3267, allocations: 52.98 kB / 379.3 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002283/0.3269, allocations: 76.58 kB / 379.4 MB, free: 51.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.327, allocations: 31.03 kB / 379.4 MB, free: 51.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007128/0.3277, allocations: 443.2 kB / 379.8 MB, free: 51.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3278, allocations: 0 / 379.8 MB, free: 51.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001198/0.329, allocations: 258.1 kB / 380.1 MB, free: 51.07 MB / 318.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.0002367/0.3292, allocations: 130.2 kB / 380.2 MB, free: 50.99 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.3325, allocations: 1.382 MB / 381.6 MB, free: 50.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3325, allocations: 0 / 381.6 MB, free: 50.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.334, allocations: 1.006 MB / 382.6 MB, free: 50.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.3353, allocations: 185.7 kB / 382.8 MB, free: 50.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004497/0.3398, allocations: 2.194 MB / 385 MB, free: 49.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.3405, allocations: 1.026 MB / 386 MB, free: 48.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004556/0.341, allocations: 86.94 kB / 386.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.341, allocations: 0 / 386.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of Templates: time 0.03266/0.3737, allocations: 29.1 MB / 415.2 MB, free: 27.5 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches