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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001726, allocations: 105.8 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.002104/0.002105, 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 2.104/2.104, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 46.14 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1513, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.01536/0.1667, allocations: 6.294 MB / 356.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007281/0.174, allocations: 1.842 MB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001672/0.1758, allocations: 19.94 kB / 358.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.1776, allocations: 214.1 kB / 358.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003018/0.1806, allocations: 404.8 kB / 358.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.1825, allocations: 371.5 kB / 359.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003466/0.186, allocations: 1.479 MB / 360.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.1874, allocations: 0.5015 MB / 361.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.1887, allocations: 0.5412 MB / 361.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.1903, allocations: 0.5952 MB / 362.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005447/0.1909, allocations: 160 kB / 362.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006958/0.1916, allocations: 160 kB / 362.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.1921, allocations: 303 kB / 363 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.1937, allocations: 0.6417 MB / 363.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003274/0.197, allocations: 1.834 MB / 365.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.197, allocations: 0 / 365.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1971, allocations: 0 / 365.5 MB, free: 4.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.639e-05/0.1971, allocations: 4 kB / 365.5 MB, free: 4.887 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.006477/0.2036, allocations: 1.445 MB / 366.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.732e-05/0.2037, allocations: 12.03 kB / 367 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004537/0.2042, allocations: 148.3 kB / 367.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004662/0.2047, allocations: 127.4 kB / 367.2 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002261/0.207, allocations: 0.6728 MB / 367.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.2072, allocations: 74.56 kB / 368 MB, free: 2.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/0.2075, allocations: 96.38 kB / 368.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003779/0.2113, allocations: 1.001 MB / 369.1 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.005e-05/0.2114, allocations: 15.84 kB / 369.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001729/0.2116, allocations: 40 kB / 369.1 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/0.2117, allocations: 24 kB / 369.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003855/0.2156, allocations: 0.8679 MB / 370 MB, free: 260 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2731/0.4887, allocations: 3.322 MB / 373.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002925/0.4916, allocations: 0.8189 MB / 374.2 MB, free: 23.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.4934, allocations: 472.5 kB / 374.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/0.4935, allocations: 13.72 kB / 374.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/0.4936, allocations: 46.97 kB / 374.7 MB, free: 23.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 5.27e-06/0.4936, allocations: 0 / 374.7 MB, free: 23.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.0185/0.5121, allocations: 4.299 MB / 379 MB, free: 20.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.5123, allocations: 88.52 kB / 379.1 MB, free: 20.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.514, allocations: 0.607 MB / 379.7 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.5142, allocations: 41.88 kB / 379.7 MB, free: 20.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004224/0.5146, allocations: 425.2 kB / 380.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005751/0.5152, allocations: 392.7 kB / 380.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005913/0.5159, allocations: 185.4 kB / 380.7 MB, free: 19.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002749/0.5162, allocations: 396.9 kB / 381.1 MB, free: 19.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/0.5179, allocations: 379.9 kB / 381.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/0.5199, allocations: 0.5083 MB / 382 MB, free: 18.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003309/0.5232, allocations: 0.8938 MB / 382.8 MB, free: 18.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.5233, allocations: 1.469 kB / 382.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004019/0.5273, allocations: 1.187 MB / 384 MB, free: 17.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/0.5274, allocations: 18.66 kB / 384.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.5274, allocations: 6.781 kB / 384.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006333/0.528, allocations: 129.8 kB / 384.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001553/0.5296, allocations: 250 kB / 384.4 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003651/0.5333, allocations: 4.965 MB / 389.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.5343, allocations: 54.38 kB / 389.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.221e-05/0.5344, allocations: 38.55 kB / 389.5 MB, free: 12.88 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.0005289/0.535, allocations: 287.2 kB / 389.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.5352, allocations: 88.17 kB / 389.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.5369, allocations: 0.7742 MB / 390.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5369, allocations: 10.5 kB / 390.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/0.5369, allocations: 11.2 kB / 390.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.537, allocations: 6.703 kB / 390.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004651/0.5416, allocations: 2.649 MB / 393.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5417, allocations: 1.312 kB / 393.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.5431, allocations: 214.2 kB / 393.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006408/0.5437, allocations: 154.5 kB / 393.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.5438, allocations: 31.89 kB / 393.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.5488, allocations: 5.995 MB / 399.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5489, allocations: 1.125 kB / 399.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/0.5543, allocations: 1.739 MB / 401.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006176/0.555, allocations: 163.5 kB / 401.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003791/0.5554, allocations: 34.55 kB / 401.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.5567, allocations: 51.28 kB / 401.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.557, allocations: 83.06 kB / 401.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5572, allocations: 33.7 kB / 401.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001078/0.5583, allocations: 448.2 kB / 402.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5583, allocations: 4 kB / 402.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001811/0.5601, allocations: 249.3 kB / 402.5 MB, free: 2.93 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.00497/0.5651, allocations: 2.325 MB / 404.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.005391/0.5705, allocations: 1.375 MB / 406.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.5706, allocations: 0 / 406.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003121/0.5737, allocations: 1.012 MB / 407.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.5762, allocations: 187.3 kB / 407.4 MB, free: 14.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02806/0.6043, allocations: 8.656 MB / 416 MB, free: 5.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.6055, allocations: 1.02 MB / 417 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.6068, allocations: 115.6 kB / 417.2 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009657/0.6078, allocations: 387.3 kB / 417.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6078, allocations: 0 / 417.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08558/0.6934, allocations: 20.32 MB / 437.9 MB, free: 200 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.46/17.16, allocations: 15.19 kB / 437.9 MB, free: 188 kB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > 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.csv","/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches