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.001487/0.001487, allocations: 117 kB / 18.41 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001984/0.001984, allocations: 208.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 58.78 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.08946, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007071/0.09656, allocations: 6.426 MB / 365.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.09983, allocations: 1.913 MB / 367.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004454/0.1003, allocations: 19.94 kB / 367.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005418/0.1009, allocations: 218 kB / 367.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007867/0.1017, allocations: 404.8 kB / 367.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000693/0.1024, allocations: 383.5 kB / 368.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.1039, allocations: 1.522 MB / 369.8 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000668/0.1045, allocations: 0.4975 MB / 370.3 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.1052, allocations: 0.5528 MB / 370.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006674/0.1059, allocations: 0.6108 MB / 371.4 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.1061, allocations: 163.9 kB / 371.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.1063, allocations: 164 kB / 371.8 MB, free: 404 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002456/0.1066, allocations: 303.1 kB / 372.1 MB, free: 100 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1591/0.2657, allocations: 0.6568 MB / 372.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001939/0.2676, allocations: 1.889 MB / 374.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2676, allocations: 0 / 374.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2677, allocations: 0 / 374.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.217e-05/0.2677, allocations: 1.844 kB / 374.6 MB, free: 11.79 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003009/0.2707, allocations: 1.438 MB / 376 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2708, allocations: 9.906 kB / 376 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005826/0.2714, allocations: 146.4 kB / 376.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.2725, allocations: 0.6946 MB / 376.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/0.2726, allocations: 71.69 kB / 377 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.2728, allocations: 104 kB / 377.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.2745, allocations: 0.9757 MB / 378 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.816e-05/0.2746, allocations: 6.203 kB / 378 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-05/0.2747, allocations: 40.61 kB / 378.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.2747, allocations: 27.19 kB / 378.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.2762, allocations: 0.7979 MB / 378.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004883/0.2811, allocations: 3.309 MB / 382.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.2823, allocations: 0.8026 MB / 383 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006854/0.283, allocations: 448.3 kB / 383.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.025e-05/0.2831, allocations: 12.75 kB / 383.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.2831, allocations: 48.38 kB / 383.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.595e-06/0.2831, allocations: 0.75 kB / 383.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.008164/0.2913, allocations: 4.175 MB / 387.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.2914, allocations: 89.89 kB / 387.8 MB, free: 5.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007983/0.2922, allocations: 0.6449 MB / 388.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.983e-05/0.2922, allocations: 46.11 kB / 388.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.2925, allocations: 429.5 kB / 388.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.2927, allocations: 411.8 kB / 389.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/0.2929, allocations: 189.1 kB / 389.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.2931, allocations: 396.4 kB / 389.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/0.2937, allocations: 348.4 kB / 390.2 MB, free: 4.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006866/0.2944, allocations: 487.2 kB / 390.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.2957, allocations: 0.8503 MB / 391.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.2958, allocations: 1.219 kB / 391.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001937/0.2977, allocations: 1.148 MB / 392.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.2977, allocations: 6.875 kB / 392.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2977, allocations: 2.75 kB / 392.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000363/0.2981, allocations: 134.8 kB / 392.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009564/0.2991, allocations: 238.4 kB / 393 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003263/0.3024, allocations: 4.983 MB / 398 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/0.3033, allocations: 36.39 kB / 398.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/0.3034, allocations: 39.8 kB / 398.1 MB, free: 14.07 MB / 318.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.0006152/0.304, allocations: 287 kB / 398.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.3042, allocations: 92.25 kB / 398.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3058, allocations: 0.7494 MB / 399.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3058, allocations: 11.94 kB / 399.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.3058, allocations: 3.906 kB / 399.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.3059, allocations: 13.41 kB / 399.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.3101, allocations: 2.613 MB / 401.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3102, allocations: 0 / 401.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008426/0.311, allocations: 191.3 kB / 402.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004333/0.3115, allocations: 157.1 kB / 402.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.228e-05/0.3115, allocations: 30.3 kB / 402.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004613/0.3162, allocations: 5.989 MB / 408.2 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3162, allocations: 0 / 408.2 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002675/0.3189, allocations: 1.663 MB / 409.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005776/0.3194, allocations: 252.6 kB / 410.1 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.3197, allocations: 23.5 kB / 410.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/0.3203, allocations: 32.92 kB / 410.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.3205, allocations: 89.02 kB / 410.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.3205, allocations: 29.73 kB / 410.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006443/0.3212, allocations: 462.9 kB / 410.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3212, allocations: 0 / 410.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001108/0.3223, allocations: 260.7 kB / 411 MB, free: 3.59 MB / 318.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.0002043/0.3225, allocations: 133.1 kB / 411.1 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.3248, allocations: 1.282 MB / 412.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.3248, allocations: 4 kB / 412.4 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.3261, allocations: 0.9814 MB / 413.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.3273, allocations: 204.7 kB / 413.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.3311, allocations: 2.144 MB / 415.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.3318, allocations: 1.033 MB / 416.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005334/0.3323, allocations: 128 kB / 416.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.3326, allocations: 79.42 kB / 417 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3326, allocations: 0 / 417 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.02236/0.3549, allocations: 12.4 MB / 429.4 MB, free: 1.258 MB / 334.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 -s gbode -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