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.001503/0.001504, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001913/0.001913, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.624/1.624, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 63.36 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08387/0.08523, allocations: 50.54 MB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007239/0.09251, allocations: 6.405 MB / 363.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.09583, allocations: 1.901 MB / 365.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007776/0.09664, allocations: 19.94 kB / 365.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007205/0.0974, allocations: 170.8 kB / 365.5 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.09857, allocations: 357.5 kB / 365.8 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007013/0.09928, allocations: 335.8 kB / 366.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.1007, allocations: 1.499 MB / 367.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005828/0.1013, allocations: 0.5056 MB / 368.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005729/0.1019, allocations: 0.5567 MB / 368.7 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005642/0.1024, allocations: 0.6068 MB / 369.3 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.1026, allocations: 156 kB / 369.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.1028, allocations: 168 kB / 369.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.103, allocations: 307 kB / 369.9 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005043/0.1035, allocations: 0.665 MB / 370.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1556/0.2591, allocations: 1.868 MB / 372.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.2591, allocations: 1.625 kB / 372.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2592, allocations: 0.9688 kB / 372.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.92e-05/0.2592, allocations: 0 / 372.5 MB, free: 12.93 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.002772/0.262, allocations: 1.446 MB / 373.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.262, allocations: 9.094 kB / 373.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005308/0.2626, allocations: 147.2 kB / 374.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009592/0.2635, allocations: 0.6814 MB / 374.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.2637, allocations: 79.52 kB / 374.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.2638, allocations: 98.95 kB / 374.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.2656, allocations: 0.9785 MB / 375.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.2656, allocations: 7.344 kB / 375.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.553e-05/0.2657, allocations: 40.75 kB / 375.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.2657, allocations: 22.59 kB / 376 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.2671, allocations: 0.7988 MB / 376.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004558/0.2717, allocations: 3.348 MB / 380.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.2729, allocations: 0.8009 MB / 380.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006393/0.2735, allocations: 440 kB / 381.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.026e-05/0.2736, allocations: 18.19 kB / 381.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.2736, allocations: 43.83 kB / 381.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.645e-06/0.2736, allocations: 0 / 381.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=119): time 0.00788/0.2815, allocations: 4.175 MB / 385.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.2816, allocations: 96.64 kB / 385.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/0.2824, allocations: 0.6408 MB / 386.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.2824, allocations: 45.83 kB / 386.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.2826, allocations: 429.8 kB / 386.8 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/0.2828, allocations: 411.5 kB / 387.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.2831, allocations: 185.6 kB / 387.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.532e-05/0.2832, allocations: 398 kB / 387.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/0.2838, allocations: 353.6 kB / 388.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006608/0.2845, allocations: 486.5 kB / 388.6 MB, free: 5.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.2857, allocations: 0.8546 MB / 389.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.2857, allocations: 1 kB / 389.4 MB, free: 4.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001824/0.2876, allocations: 1.155 MB / 390.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2876, allocations: 9.578 kB / 390.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2876, allocations: 2.594 kB / 390.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003642/0.288, allocations: 133.9 kB / 390.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009517/0.2889, allocations: 238.3 kB / 391 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.2916, allocations: 4.982 MB / 395.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007508/0.2923, allocations: 35.05 kB / 396 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-05/0.2924, allocations: 47.98 kB / 396 MB, free: 15.52 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.0004657/0.2929, allocations: 277.4 kB / 396.3 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.2931, allocations: 92.25 kB / 396.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.2945, allocations: 0.7543 MB / 397.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.2945, allocations: 11.53 kB / 397.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.2945, allocations: 2.875 kB / 397.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.2946, allocations: 7.5 kB / 397.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003844/0.2984, allocations: 2.626 MB / 399.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.2984, allocations: 1.5 kB / 399.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008389/0.2993, allocations: 199.1 kB / 400 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004345/0.2997, allocations: 157 kB / 400.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.627e-05/0.2998, allocations: 32.23 kB / 400.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.3038, allocations: 5.98 MB / 406.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3038, allocations: 5.344 kB / 406.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.3065, allocations: 1.661 MB / 407.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.307, allocations: 248.1 kB / 408.1 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.3071, allocations: 26.42 kB / 408.1 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/0.3077, allocations: 42.34 kB / 408.1 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.3079, allocations: 81.33 kB / 408.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-05/0.308, allocations: 35.11 kB / 408.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005567/0.3085, allocations: 462.1 kB / 408.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3085, allocations: 3.844 kB / 408.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009627/0.3095, allocations: 260 kB / 408.9 MB, free: 4.977 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.0001904/0.3097, allocations: 137.3 kB / 409.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.3122, allocations: 1.321 MB / 410.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3122, allocations: 0 / 410.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.3135, allocations: 0.984 MB / 411.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.3145, allocations: 208.3 kB / 411.6 MB, free: 2.309 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003823/0.3184, allocations: 2.617 MB / 414.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.319, allocations: 1.037 MB / 415.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005585/0.3195, allocations: 128 kB / 415.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.3198, allocations: 79.42 kB / 415.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3198, allocations: 0 / 415.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Templates: time 0.0198/0.3396, allocations: 12.27 MB / 427.7 MB, free: 2.266 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 -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/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_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches