Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001571/0.001571, allocations: 112.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001772/0.001772, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2937, allocations: 50.55 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007368/0.3011, allocations: 6.424 MB / 416.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003036/0.3042, allocations: 1.905 MB / 418.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003949/0.3046, allocations: 19.94 kB / 418.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.3052, allocations: 218 kB / 418.5 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007586/0.306, allocations: 408.8 kB / 418.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.3066, allocations: 371.6 kB / 419.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.308, allocations: 1.518 MB / 420.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00065/0.3087, allocations: 0.5131 MB / 421.3 MB, free: 6.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007011/0.3094, allocations: 0.549 MB / 421.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000658/0.31, allocations: 0.6068 MB / 422.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.3102, allocations: 163.9 kB / 422.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002446/0.3105, allocations: 164 kB / 422.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.3107, allocations: 311 kB / 423.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005306/0.3112, allocations: 0.6573 MB / 423.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.3128, allocations: 1.886 MB / 425.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3128, allocations: 0 / 425.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3128, allocations: 0 / 425.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.3128, allocations: 4 kB / 425.6 MB, free: 1.848 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002823/0.3157, allocations: 1.445 MB / 427.1 MB, free: 360 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3157, allocations: 12.03 kB / 427.1 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.3162, allocations: 147.5 kB / 427.2 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.3173, allocations: 0.6879 MB / 427.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.451e-05/0.3174, allocations: 74 kB / 428 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3176, allocations: 107.9 kB / 428.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.3192, allocations: 0.9701 MB / 429 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.3192, allocations: 7.906 kB / 429.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.643e-05/0.3193, allocations: 40 kB / 429.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.3194, allocations: 24 kB / 429.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.3208, allocations: 0.7938 MB / 429.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004667/0.3255, allocations: 3.313 MB / 433.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3267, allocations: 0.8008 MB / 434 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006928/0.3274, allocations: 445.6 kB / 434.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.396e-05/0.3275, allocations: 24.48 kB / 434.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.3275, allocations: 47.73 kB / 434.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 2.916e-06/0.3275, allocations: 3.938 kB / 434.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.008335/0.3359, allocations: 4.181 MB / 438.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.336, allocations: 89.77 kB / 438.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007819/0.3368, allocations: 0.633 MB / 439.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.334e-05/0.3368, allocations: 45.7 kB / 439.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002828/0.3371, allocations: 436.1 kB / 439.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/0.3374, allocations: 410 kB / 440.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002745/0.3377, allocations: 187 kB / 440.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3378, allocations: 398.7 kB / 440.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006536/0.3385, allocations: 346.5 kB / 441.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000731/0.3392, allocations: 488.6 kB / 441.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.3406, allocations: 0.8549 MB / 442.5 MB, free: 316 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.3406, allocations: 3.938 kB / 442.6 MB, free: 312 kB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00199/0.3426, allocations: 1.154 MB / 443.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3427, allocations: 8 kB / 443.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3427, allocations: 0 / 443.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003958/0.3431, allocations: 126.5 kB / 443.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00098/0.3441, allocations: 239.7 kB / 444.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.3478, allocations: 4.984 MB / 449.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007609/0.3486, allocations: 31.98 kB / 449.1 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.723e-05/0.3487, allocations: 47.97 kB / 449.1 MB, free: 9.273 MB / 366.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 (132): * Single equations (assignments): 129 * 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.0005127/0.3492, allocations: 284.7 kB / 449.4 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.3494, allocations: 98.81 kB / 449.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.3509, allocations: 0.7414 MB / 450.3 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.3509, allocations: 12 kB / 450.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.3509, allocations: 7.984 kB / 450.3 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.3509, allocations: 3.984 kB / 450.3 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003852/0.3548, allocations: 2.611 MB / 452.9 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3548, allocations: 3.938 kB / 452.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008364/0.3557, allocations: 195.8 kB / 453.1 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004278/0.3561, allocations: 159.2 kB / 453.2 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.534e-05/0.3562, allocations: 27.98 kB / 453.3 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004206/0.3604, allocations: 5.99 MB / 459.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3604, allocations: 3.938 kB / 459.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.3631, allocations: 1.661 MB / 460.9 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/0.3635, allocations: 251.9 kB / 461.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.3636, allocations: 24 kB / 461.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.3641, allocations: 35.98 kB / 461.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.3643, allocations: 80.48 kB / 461.3 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.3644, allocations: 35.98 kB / 461.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005841/0.365, allocations: 459.1 kB / 461.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.365, allocations: 0 / 461.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009485/0.3659, allocations: 263.9 kB / 462 MB, free: 11.62 MB / 382.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 (108): * Single equations (assignments): 104 * 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.0002279/0.3662, allocations: 143.2 kB / 462.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.3683, allocations: 1.275 MB / 463.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3683, allocations: 0 / 463.5 MB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.3696, allocations: 0.9748 MB / 464.4 MB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.3709, allocations: 213.6 kB / 464.6 MB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.3745, allocations: 2.196 MB / 466.8 MB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.3751, allocations: 1.036 MB / 467.9 MB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.3754, allocations: 91.41 kB / 468 MB, free: 5.531 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3754, allocations: 0 / 468 MB, free: 5.531 MB / 382.1 MB Notification: Performance of Templates: time 0.032/0.4074, allocations: 30.11 MB / 498.1 MB, free: 7.414 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches