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.001471/0.001471, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.001041/0.001041, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.384/1.384, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001231/0.001231, allocations: 51.91 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.09004, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.1929/0.283, allocations: 6.217 MB / 381.4 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002981/0.286, allocations: 1.872 MB / 383.2 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004097/0.2865, allocations: 19.06 kB / 383.2 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000525/0.287, allocations: 230.1 kB / 383.5 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008076/0.2878, allocations: 407.5 kB / 383.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.2885, allocations: 372.5 kB / 384.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001478/0.29, allocations: 1.489 MB / 385.7 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006141/0.2906, allocations: 0.5095 MB / 386.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006077/0.2912, allocations: 0.5462 MB / 386.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006113/0.2918, allocations: 0.5935 MB / 387.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.292, allocations: 161.2 kB / 387.5 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.2923, allocations: 159.9 kB / 387.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.2924, allocations: 300.7 kB / 388 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.293, allocations: 0.6424 MB / 388.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001807/0.2948, allocations: 1.856 MB / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.2948, allocations: 1.125 kB / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2948, allocations: 0 / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.446e-05/0.2949, allocations: 0 / 390.5 MB, free: 6.023 MB / 318.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.002871/0.2977, allocations: 1.45 MB / 391.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2978, allocations: 8.5 kB / 391.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.298, allocations: 120.8 kB / 392.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.299, allocations: 0.6745 MB / 392.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.2991, allocations: 73.84 kB / 392.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.2992, allocations: 104.8 kB / 392.9 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.3012, allocations: 1.005 MB / 393.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.3012, allocations: 3.359 kB / 393.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.3013, allocations: 43.94 kB / 394 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/0.3013, allocations: 23.88 kB / 394 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001887/0.3032, allocations: 0.8672 MB / 394.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004824/0.3081, allocations: 3.294 MB / 398.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.3094, allocations: 0.8169 MB / 399 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008494/0.3102, allocations: 472.5 kB / 399.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.556e-05/0.3103, allocations: 15.67 kB / 399.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.3103, allocations: 53.58 kB / 399.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.957e-06/0.3104, allocations: 3.984 kB / 399.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=115): time 0.00945/0.3198, allocations: 4.298 MB / 403.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3199, allocations: 100.2 kB / 403.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000838/0.3207, allocations: 0.5964 MB / 404.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3208, allocations: 46.55 kB / 404.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.3211, allocations: 428.7 kB / 404.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.3214, allocations: 392.7 kB / 405.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003016/0.3217, allocations: 184.1 kB / 405.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.3219, allocations: 397.1 kB / 405.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008395/0.3228, allocations: 377.8 kB / 406.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009092/0.3237, allocations: 0.5145 MB / 406.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.3254, allocations: 0.8855 MB / 407.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.3254, allocations: 1.094 kB / 407.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002426/0.3279, allocations: 1.191 MB / 408.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3279, allocations: 7 kB / 408.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3279, allocations: 2.25 kB / 408.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004102/0.3283, allocations: 131.1 kB / 409 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.3294, allocations: 249.4 kB / 409.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003729/0.3332, allocations: 4.974 MB / 414.2 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007751/0.3339, allocations: 55.55 kB / 414.3 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.919e-05/0.334, allocations: 41.23 kB / 414.3 MB, free: 5.984 MB / 334.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.0004639/0.3345, allocations: 277.6 kB / 414.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3346, allocations: 89.22 kB / 414.7 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.3363, allocations: 0.7776 MB / 415.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.3363, allocations: 10.78 kB / 415.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.3363, allocations: 4.375 kB / 415.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.3363, allocations: 3.984 kB / 415.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004291/0.3406, allocations: 2.651 MB / 418.1 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.3406, allocations: 4 kB / 418.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008692/0.3415, allocations: 205.5 kB / 418.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004403/0.342, allocations: 157.5 kB / 418.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-05/0.342, allocations: 22.88 kB / 418.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004312/0.3464, allocations: 5.985 MB / 424.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3464, allocations: 3.938 kB / 424.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.3496, allocations: 1.742 MB / 426.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003291/0.35, allocations: 168.1 kB / 426.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.3502, allocations: 20 kB / 426.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.3508, allocations: 51.95 kB / 426.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.351, allocations: 76.45 kB / 426.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.125e-05/0.351, allocations: 31.98 kB / 426.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005668/0.3516, allocations: 443.1 kB / 427 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3516, allocations: 0 / 427 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001029/0.3527, allocations: 256 kB / 427.2 MB, free: 9.82 MB / 350.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.0001976/0.3529, allocations: 134.3 kB / 427.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002545/0.3554, allocations: 1.35 MB / 428.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3554, allocations: 0 / 428.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.357, allocations: 1.002 MB / 429.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.358, allocations: 191.1 kB / 429.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.3617, allocations: 2.132 MB / 432 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.3624, allocations: 1.028 MB / 433.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004849/0.3629, allocations: 115.6 kB / 433.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.3631, allocations: 79.41 kB / 433.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3631, allocations: 0 / 433.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of Templates: time 0.02073/0.3839, allocations: 12.15 MB / 445.4 MB, free: 7.465 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/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