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.001195/0.001194, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001199/0.001199, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.441/1.441, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001281/0.001281, allocations: 51.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08947, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.2145/0.3041, allocations: 6.226 MB / 381.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.307, allocations: 1.874 MB / 383.2 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003969/0.3075, allocations: 20.44 kB / 383.3 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005482/0.3081, allocations: 219.5 kB / 383.5 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007806/0.3088, allocations: 396.2 kB / 383.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006128/0.3095, allocations: 375 kB / 384.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.3109, allocations: 1.489 MB / 385.7 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006559/0.3116, allocations: 0.5122 MB / 386.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005724/0.3122, allocations: 0.5422 MB / 386.8 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006326/0.3128, allocations: 0.5977 MB / 387.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.313, allocations: 159.6 kB / 387.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.3133, allocations: 158.7 kB / 387.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.3135, allocations: 299.8 kB / 388 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004823/0.314, allocations: 0.6508 MB / 388.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.3157, allocations: 1.851 MB / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3157, allocations: 2.344 kB / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3157, allocations: 0 / 390.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.927e-05/0.3157, 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.002717/0.3185, allocations: 1.44 MB / 391.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3185, allocations: 10.34 kB / 391.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.3187, allocations: 122.8 kB / 392 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.3198, allocations: 0.675 MB / 392.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/0.3199, allocations: 73.78 kB / 392.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.3201, allocations: 100.2 kB / 392.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.3219, allocations: 1.01 MB / 393.9 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.3219, allocations: 5.797 kB / 393.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.252e-05/0.322, allocations: 44.28 kB / 393.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.3221, allocations: 23.59 kB / 394 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.3239, allocations: 0.8644 MB / 394.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004426/0.3283, allocations: 3.303 MB / 398.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3296, allocations: 0.8038 MB / 398.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008346/0.3305, allocations: 483.1 kB / 399.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.409e-05/0.3305, allocations: 12.88 kB / 399.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.3306, allocations: 43 kB / 399.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.086e-06/0.3306, allocations: 0 / 399.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=115): time 0.009141/0.3397, allocations: 4.316 MB / 403.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.3398, allocations: 93.8 kB / 403.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008242/0.3406, allocations: 0.6067 MB / 404.5 MB, free: 14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.67e-05/0.3407, allocations: 42.17 kB / 404.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003043/0.341, allocations: 424.6 kB / 404.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.3413, allocations: 393 kB / 405.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3416, allocations: 191.3 kB / 405.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3418, allocations: 394.6 kB / 405.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008225/0.3426, allocations: 377.8 kB / 406.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.3436, allocations: 0.5087 MB / 406.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.3453, allocations: 0.8858 MB / 407.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3453, allocations: 1.281 kB / 407.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002445/0.3478, allocations: 1.187 MB / 408.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3478, allocations: 6.844 kB / 408.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.3478, allocations: 2.75 kB / 408.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003969/0.3482, allocations: 133.3 kB / 409 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.3493, allocations: 247.4 kB / 409.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.353, allocations: 4.975 MB / 414.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007473/0.3537, allocations: 52.2 kB / 414.3 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.3538, allocations: 41.05 kB / 414.3 MB, free: 5.977 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.0004551/0.3543, allocations: 280.8 kB / 414.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.3545, allocations: 91.44 kB / 414.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.3563, allocations: 0.7768 MB / 415.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3563, allocations: 10.44 kB / 415.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.3564, allocations: 3.906 kB / 415.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.3564, allocations: 9.75 kB / 415.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/0.3606, allocations: 2.645 MB / 418.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.3606, allocations: 1.375 kB / 418.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008757/0.3615, allocations: 205.7 kB / 418.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004222/0.362, allocations: 151.8 kB / 418.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.362, allocations: 32.02 kB / 418.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004539/0.3666, allocations: 5.975 MB / 424.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3666, allocations: 11.91 kB / 424.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.37, allocations: 1.745 MB / 426.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003966/0.3705, allocations: 156.1 kB / 426.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.3706, allocations: 27.98 kB / 426.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.3712, allocations: 47.97 kB / 426.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.3714, allocations: 76.45 kB / 426.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/0.3715, allocations: 31.98 kB / 426.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000595/0.3721, allocations: 439.1 kB / 427 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3721, allocations: 0 / 427 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009816/0.3731, allocations: 252 kB / 427.2 MB, free: 9.824 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.0001879/0.3733, allocations: 143.7 kB / 427.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002649/0.3759, allocations: 1.357 MB / 428.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.376, allocations: 0 / 428.7 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.3776, allocations: 0.9982 MB / 429.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.3787, allocations: 184.6 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.004432/0.3831, allocations: 2.139 MB / 432 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/0.384, allocations: 1.02 MB / 433.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006681/0.3847, allocations: 119.6 kB / 433.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.3849, allocations: 79.41 kB / 433.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3849, allocations: 0 / 433.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of Templates: time 0.02219/0.4071, allocations: 12.16 MB / 445.4 MB, free: 7.457 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