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.0009355/0.0009356, allocations: 180.7 kB / 8.7 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 87.48 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.419e-05, allocations: 224 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08552, allocations: 47.6 MB / 363.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/0.4032, allocations: 86.34 MB / 449.4 MB, free: 9.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.4035, allocations: 79.08 kB / 449.5 MB, free: 9.352 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.0927/0.4962, allocations: 35.59 MB / 485.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4962, allocations: 0 / 485.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.626e-05/0.4963, allocations: 20 kB / 485.1 MB, free: 11.55 MB / 362.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.002149/0.4984, allocations: 1.135 MB / 486.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4985, allocations: 12.03 kB / 486.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.4987, allocations: 122.5 kB / 486.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009192/0.4996, allocations: 0.6018 MB / 487 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.4997, allocations: 46 kB / 487 MB, free: 9.547 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.4999, allocations: 60 kB / 487.1 MB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001288/0.5012, allocations: 0.7225 MB / 487.8 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.5026, allocations: 0.8097 MB / 488.6 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.5026, allocations: 7.844 kB / 488.6 MB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.16e-05/0.5027, allocations: 4 kB / 488.6 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.5028, allocations: 20 kB / 488.6 MB, free: 7.914 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/0.5077, allocations: 3.404 MB / 492 MB, free: 4.363 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.5089, allocations: 0.7454 MB / 492.8 MB, free: 3.594 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006676/0.5096, allocations: 432.7 kB / 493.2 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-05/0.5096, allocations: 12.55 kB / 493.2 MB, free: 3.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.5097, allocations: 51.11 kB / 493.3 MB, free: 3.098 MB / 362.7 MB Notification: Performance of pre-optimization done (n=95): time 3.396e-06/0.5097, allocations: 0 / 493.3 MB, free: 3.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=131): time 0.006928/0.5166, allocations: 3.671 MB / 496.9 MB, free: 15.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.5167, allocations: 94.31 kB / 497 MB, free: 15.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006005/0.5173, allocations: 458.2 kB / 497.5 MB, free: 14.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.348e-05/0.5174, allocations: 25.7 kB / 497.5 MB, free: 14.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003022/0.5177, allocations: 432.3 kB / 497.9 MB, free: 14.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003342/0.518, allocations: 433.5 kB / 498.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.5181, allocations: 0 / 498.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.5183, allocations: 390.7 kB / 498.7 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005453/0.5188, allocations: 350.6 kB / 499.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006577/0.5195, allocations: 474 kB / 499.5 MB, free: 12.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.5201, allocations: 405.2 kB / 499.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.5202, allocations: 0 / 499.9 MB, free: 12.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001858/0.522, allocations: 1.113 MB / 0.4893 GB, free: 11.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.5221, allocations: 4 kB / 0.4893 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5221, allocations: 4 kB / 0.4893 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003886/0.5225, allocations: 138.7 kB / 0.4895 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.5237, allocations: 291.6 kB / 0.4897 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.5273, allocations: 4.604 MB / 0.4942 GB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008181/0.5282, allocations: 56.02 kB / 0.4943 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.251e-05/0.5283, allocations: 43.98 kB / 0.4943 GB, free: 5.543 MB / 378.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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002236/0.5285, allocations: 132.7 kB / 0.4944 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.5287, allocations: 90.97 kB / 0.4945 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.53, allocations: 0.7089 MB / 0.4952 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.53, allocations: 12 kB / 0.4952 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.53, allocations: 7.938 kB / 0.4952 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.53, allocations: 11.97 kB / 0.4953 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/0.534, allocations: 2.728 MB / 0.4979 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.534, allocations: 4 kB / 0.4979 GB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.535, allocations: 259.9 kB / 0.4982 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003482/0.5354, allocations: 130.5 kB / 0.4983 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.158e-05/0.5355, allocations: 7.984 kB / 0.4983 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003023/0.5385, allocations: 4.218 MB / 0.5024 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/0.5385, allocations: 8 kB / 0.5024 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002833/0.5414, allocations: 1.856 MB / 0.5042 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.5417, allocations: 164.1 kB / 0.5044 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.5418, allocations: 8 kB / 0.5044 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006919/0.5425, allocations: 55.95 kB / 0.5045 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.5427, allocations: 96.55 kB / 0.5046 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.341e-05/0.5428, allocations: 35.98 kB / 0.5046 GB, free: 10.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005273/0.5433, allocations: 359 kB / 0.5049 GB, free: 10.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5433, allocations: 0 / 0.5049 GB, free: 10.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001128/0.5445, allocations: 228 kB / 0.5051 GB, free: 9.824 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.g_ma.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002995/0.5448, allocations: 131 kB / 0.5053 GB, free: 9.684 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.5467, allocations: 1.285 MB / 0.5065 GB, free: 8.375 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5467, allocations: 0 / 0.5065 GB, free: 8.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.5479, allocations: 0.876 MB / 0.5074 GB, free: 7.473 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000927/0.5488, allocations: 137.3 kB / 0.5075 GB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.5521, allocations: 1.738 MB / 0.5092 GB, free: 5.539 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000685/0.5528, allocations: 1.056 MB / 0.5102 GB, free: 4.457 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006336/0.5534, allocations: 123.6 kB / 0.5104 GB, free: 4.332 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.5537, allocations: 75.41 kB / 0.5104 GB, free: 4.258 MB / 394.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5537, allocations: 0 / 0.5104 GB, free: 4.258 MB / 394.7 MB Notification: Performance of Templates: time 0.01926/0.5729, allocations: 10.6 MB / 0.5208 GB, free: 9.645 MB / 410.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/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