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.001014/0.001014, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001112/0.001112, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.311/1.311, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009646/0.0009647, allocations: 47.16 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08926, allocations: 49.44 MB / 350.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007889/0.09719, allocations: 6.311 MB / 356.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.1008, allocations: 1.846 MB / 358.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.1021, allocations: 16 kB / 358.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000986/0.1032, allocations: 218 kB / 358.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1046, allocations: 396.8 kB / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000845/0.1055, allocations: 367.6 kB / 359.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001835/0.1074, allocations: 1.473 MB / 360.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007495/0.1081, allocations: 0.5054 MB / 361.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007418/0.1089, allocations: 0.5294 MB / 361.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007313/0.1096, allocations: 0.603 MB / 362.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001894/0.1098, allocations: 156 kB / 362.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.11, allocations: 160 kB / 362.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.1102, allocations: 303 kB / 362.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006142/0.1109, allocations: 0.6456 MB / 363.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.1123, allocations: 1.834 MB / 365.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1123, allocations: 4 kB / 365.4 MB, free: 5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1124, allocations: 0 / 365.4 MB, free: 5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1124, allocations: 0 / 365.4 MB, free: 5 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.002676/0.1151, allocations: 1.445 MB / 366.8 MB, free: 3.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1151, allocations: 8.031 kB / 366.8 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.1153, allocations: 123.5 kB / 367 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009408/0.1162, allocations: 0.6727 MB / 367.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.1164, allocations: 78.56 kB / 367.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.1165, allocations: 100.4 kB / 367.8 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.1182, allocations: 1.005 MB / 368.8 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/0.1183, allocations: 3.906 kB / 368.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.268e-05/0.1183, allocations: 43.98 kB / 368.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.1184, allocations: 24 kB / 368.9 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.1202, allocations: 0.8718 MB / 369.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1511/0.2712, allocations: 3.32 MB / 373.1 MB, free: 23.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.2729, allocations: 0.825 MB / 373.9 MB, free: 23.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000886/0.2738, allocations: 476.7 kB / 374.4 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.432e-05/0.2739, allocations: 11.55 kB / 374.4 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2739, allocations: 43.77 kB / 374.4 MB, free: 23.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 3.176e-06/0.2739, allocations: 0 / 374.4 MB, free: 23.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.009639/0.2836, allocations: 4.303 MB / 378.7 MB, free: 20.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.2837, allocations: 93.52 kB / 378.8 MB, free: 20.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007972/0.2845, allocations: 0.597 MB / 379.4 MB, free: 20.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.2845, allocations: 46.08 kB / 379.5 MB, free: 20.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.2847, allocations: 425.7 kB / 379.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.2849, allocations: 393.5 kB / 380.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.2852, allocations: 183.1 kB / 380.4 MB, free: 19.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2853, allocations: 400.2 kB / 380.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007813/0.2861, allocations: 382.7 kB / 381.2 MB, free: 19.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008758/0.287, allocations: 0.5101 MB / 381.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001544/0.2885, allocations: 0.8854 MB / 382.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2885, allocations: 1.188 kB / 382.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002233/0.2908, allocations: 1.184 MB / 383.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.2908, allocations: 14.81 kB / 383.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.2908, allocations: 6.5 kB / 383.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003801/0.2912, allocations: 130.3 kB / 383.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.2922, allocations: 254.1 kB / 384.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.295, allocations: 4.972 MB / 389.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006847/0.2957, allocations: 49.38 kB / 389.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.2958, allocations: 47.25 kB / 389.2 MB, free: 13.06 MB / 302.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.0003769/0.2961, allocations: 285.3 kB / 389.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.2963, allocations: 87.94 kB / 389.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.2978, allocations: 0.7612 MB / 390.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.2979, allocations: 12.56 kB / 390.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.2979, allocations: 10.69 kB / 390.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.2979, allocations: 6.719 kB / 390.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003886/0.3018, allocations: 2.659 MB / 393.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3018, allocations: 0 / 393.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008058/0.3026, allocations: 212.7 kB / 393.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/0.303, allocations: 157.3 kB / 393.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.3031, allocations: 23.95 kB / 393.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002803/0.3059, allocations: 5.999 MB / 399.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3059, allocations: 1.312 kB / 399.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.3086, allocations: 1.739 MB / 401.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.3088, allocations: 167.5 kB / 401.3 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.3089, allocations: 28.91 kB / 401.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005687/0.3094, allocations: 47.28 kB / 401.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.3096, allocations: 84.16 kB / 401.5 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.3096, allocations: 32.92 kB / 401.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004721/0.3101, allocations: 444.3 kB / 402 MB, free: 3.242 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3101, allocations: 0 / 402 MB, free: 3.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008666/0.311, allocations: 256 kB / 402.2 MB, free: 3.207 MB / 302.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.0001365/0.3111, allocations: 143.8 kB / 402.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002409/0.3136, allocations: 1.386 MB / 403.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3136, allocations: 0 / 403.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3147, allocations: 0.9946 MB / 404.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000883/0.3156, allocations: 180.5 kB / 404.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.3187, allocations: 2.177 MB / 407.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005359/0.3192, allocations: 1.023 MB / 408.1 MB, free: 13.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000488/0.3197, allocations: 123.5 kB / 408.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.3199, allocations: 79.41 kB / 408.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3199, allocations: 0 / 408.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Templates: time 0.01876/0.3387, allocations: 11.9 MB / 420.2 MB, free: 1.996 MB / 318.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches