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.0009569/0.0009569, allocations: 91.73 kB / 16.3 MB, free: 6.453 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.001251/0.001251, allocations: 185.4 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003248, allocations: 5.688 kB / 300.7 MB, free: 5.938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09133/0.09167, allocations: 50.43 MB / 351.1 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.004851/0.09655, allocations: 5.091 MB / 356.2 MB, free: 6.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.09895, allocations: 1.805 MB / 358 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003281/0.0993, allocations: 23.94 kB / 358.1 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.09961, allocations: 158.9 kB / 358.2 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006429/0.1003, allocations: 418.8 kB / 358.6 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.1007, allocations: 211.7 kB / 358.8 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009401/0.1016, allocations: 0.9086 MB / 359.7 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.1021, allocations: 369.9 kB / 360.1 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000405/0.1025, allocations: 426.4 kB / 360.5 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.103, allocations: 497.9 kB / 361 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.306e-05/0.1031, allocations: 64 kB / 361.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.1032, allocations: 60 kB / 361.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.1033, allocations: 187.2 kB / 361.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1035, allocations: 249.1 kB / 361.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.1045, allocations: 1.445 MB / 363 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.1045, allocations: 0 / 363 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1046, allocations: 7.938 kB / 363 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1046, allocations: 0 / 363 MB, free: 15.82 MB / 302.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.002363/0.1069, allocations: 1.298 MB / 364.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.107, allocations: 8.031 kB / 364.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.1072, allocations: 126.5 kB / 364.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009599/0.1081, allocations: 0.6447 MB / 365.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.1083, allocations: 77.94 kB / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.1084, allocations: 99.91 kB / 365.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.1101, allocations: 1.013 MB / 366.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/0.1101, allocations: 7.953 kB / 366.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.459e-05/0.1102, allocations: 44 kB / 366.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.1102, allocations: 24 kB / 366.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.112, allocations: 0.9108 MB / 367.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.1165, allocations: 3.348 MB / 370.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.1179, allocations: 0.8314 MB / 371.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.1179, allocations: 16.55 kB / 371.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.118, allocations: 47.11 kB / 371.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.096e-06/0.118, allocations: 4 kB / 371.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009506/0.1275, allocations: 4.428 MB / 375.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.1276, allocations: 89.77 kB / 376 MB, free: 2.332 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007164/0.1283, allocations: 0.5968 MB / 376.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.906e-05/0.1284, allocations: 45.7 kB / 376.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.1286, allocations: 428.2 kB / 377.1 MB, free: 1.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.1289, allocations: 394.2 kB / 377.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.1289, allocations: 20 kB / 377.5 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1291, allocations: 402.7 kB / 377.9 MB, free: 452 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000818/0.1299, allocations: 398.4 kB / 378.3 MB, free: 52 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000972/0.1309, allocations: 0.5237 MB / 378.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009307/0.1318, allocations: 447.9 kB / 379.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1319, allocations: 0 / 379.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002233/0.1341, allocations: 1.227 MB / 380.4 MB, free: 13.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1341, allocations: 8 kB / 380.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1341, allocations: 0 / 380.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.1345, allocations: 134.5 kB / 380.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.1356, allocations: 255.7 kB / 380.8 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003216/0.1388, allocations: 4.552 MB / 385.4 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007209/0.1395, allocations: 64.02 kB / 385.4 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.031e-05/0.1396, allocations: 51.88 kB / 385.5 MB, free: 8.344 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_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.0004404/0.1401, allocations: 275.5 kB / 385.8 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.1402, allocations: 86.97 kB / 385.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.1418, allocations: 0.784 MB / 386.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.1418, allocations: 16 kB / 386.7 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1418, allocations: 7.984 kB / 386.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.1418, allocations: 3.984 kB / 386.7 MB, free: 7.148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/0.1458, allocations: 2.695 MB / 389.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.1459, allocations: 4 kB / 389.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008855/0.1468, allocations: 216 kB / 389.6 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004192/0.1472, allocations: 151.3 kB / 389.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.153e-05/0.1473, allocations: 31.92 kB / 389.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00376/0.151, allocations: 5.612 MB / 395.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.151, allocations: 12.08 kB / 395.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/0.1541, allocations: 1.834 MB / 397.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.1542, allocations: 160 kB / 397.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.1544, allocations: 27.98 kB / 397.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000617/0.155, allocations: 63.97 kB / 397.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.1551, allocations: 72.41 kB / 397.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.615e-05/0.1552, allocations: 35.98 kB / 397.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005649/0.1558, allocations: 439.1 kB / 398 MB, free: 11.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1558, allocations: 4 kB / 398 MB, free: 11.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008594/0.1566, allocations: 256 kB / 398.2 MB, free: 10.85 MB / 334.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 (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.0001767/0.1568, allocations: 132.8 kB / 398.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.1591, allocations: 1.377 MB / 399.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1591, allocations: 0 / 399.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.1606, allocations: 1.021 MB / 400.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.1614, allocations: 148.9 kB / 400.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003659/0.165, allocations: 2.643 MB / 403.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000531/0.1656, allocations: 1.047 MB / 404.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005097/0.1661, allocations: 123.6 kB / 404.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.1663, allocations: 71.42 kB / 404.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1663, allocations: 0 / 404.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of Templates: time 0.01737/0.1837, allocations: 10.78 MB / 415.6 MB, free: 9.43 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches