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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001247/0.001247, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3026, allocations: 50.55 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008134/0.3108, allocations: 6.439 MB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003895/0.3147, allocations: 1.901 MB / 417.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006102/0.3153, allocations: 19.94 kB / 417.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006409/0.316, allocations: 218 kB / 417.3 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009256/0.317, allocations: 408.7 kB / 417.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.3177, allocations: 375.5 kB / 418.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001498/0.3192, allocations: 1.507 MB / 419.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006962/0.3199, allocations: 0.513 MB / 420.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007052/0.3206, allocations: 0.5567 MB / 420.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007394/0.3214, allocations: 0.6107 MB / 421.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.3216, allocations: 160 kB / 421.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000256/0.3218, allocations: 160 kB / 421.6 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002959/0.3221, allocations: 303.1 kB / 421.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006614/0.3228, allocations: 0.665 MB / 422.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.325, allocations: 1.891 MB / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.325, allocations: 0 / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.325, allocations: 0 / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.425e-05/0.3251, allocations: 3.938 kB / 424.4 MB, free: 1.77 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.002887/0.328, allocations: 1.475 MB / 425.9 MB, free: 248 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.328, allocations: 12.03 kB / 425.9 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001768/0.3282, allocations: 144.4 kB / 426.1 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005449/0.3288, allocations: 156.2 kB / 426.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.33, allocations: 0.6999 MB / 426.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.825e-05/0.3301, allocations: 74 kB / 427 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001721/0.3303, allocations: 96 kB / 427.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.332, allocations: 0.9818 MB / 428.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.725e-05/0.3321, allocations: 7.953 kB / 428.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.169e-05/0.3322, allocations: 40 kB / 428.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.3322, allocations: 24 kB / 428.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.3337, allocations: 0.7938 MB / 428.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.3392, allocations: 3.314 MB / 432.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.3406, allocations: 0.808 MB / 433.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007438/0.3414, allocations: 445.4 kB / 433.5 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.935e-05/0.3414, allocations: 12.56 kB / 433.5 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.3415, allocations: 51.69 kB / 433.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 2.575e-06/0.3415, allocations: 0 / 433.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.009024/0.3505, allocations: 4.215 MB / 437.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/0.3506, allocations: 93.7 kB / 437.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009067/0.3516, allocations: 0.6369 MB / 438.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.978e-05/0.3516, allocations: 49.7 kB / 438.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.352, allocations: 441.1 kB / 439 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.3523, allocations: 428.3 kB / 439.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.3526, allocations: 190.8 kB / 439.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.3529, allocations: 390.7 kB / 440 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006832/0.3536, allocations: 346.5 kB / 440.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00082/0.3544, allocations: 488.7 kB / 440.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3559, allocations: 0.8666 MB / 441.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3559, allocations: 0 / 441.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002148/0.3581, allocations: 1.154 MB / 442.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.3581, allocations: 8 kB / 442.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3581, allocations: 3.938 kB / 442.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.3585, allocations: 122.6 kB / 442.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009992/0.3596, allocations: 247.6 kB / 443.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004309/0.3639, allocations: 4.981 MB / 448.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007242/0.3646, allocations: 31.98 kB / 448.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.643e-05/0.3647, allocations: 39.98 kB / 448.2 MB, free: 8.941 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.0004903/0.3652, allocations: 281.7 kB / 448.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.3654, allocations: 99.33 kB / 448.6 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.3669, allocations: 0.7453 MB / 449.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.3669, allocations: 12 kB / 449.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.3669, allocations: 4 kB / 449.4 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.367, allocations: 7.969 kB / 449.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.3713, allocations: 2.607 MB / 452 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3713, allocations: 4.031 kB / 452 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.3722, allocations: 199.7 kB / 452.2 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/0.3727, allocations: 159.2 kB / 452.3 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/0.3727, allocations: 27.98 kB / 452.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00576/0.3785, allocations: 5.99 MB / 458.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3786, allocations: 0 / 458.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004086/0.3827, allocations: 1.681 MB / 460 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005949/0.3833, allocations: 252.5 kB / 460.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/0.3836, allocations: 27.95 kB / 460.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007202/0.3843, allocations: 35.92 kB / 460.3 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.3845, allocations: 80.48 kB / 460.4 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-05/0.3846, allocations: 27.98 kB / 460.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007346/0.3853, allocations: 467.1 kB / 460.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3853, allocations: 3.938 kB / 460.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001194/0.3865, allocations: 260 kB / 461.2 MB, free: 11.27 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.003425/0.39, allocations: 2.243 MB / 463.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.3925, allocations: 1.282 MB / 464.7 MB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3925, allocations: 0 / 464.7 MB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.394, allocations: 0.9821 MB / 465.7 MB, free: 6.617 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.3954, allocations: 213.8 kB / 465.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.4098, allocations: 8.201 MB / 474.1 MB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008475/0.4107, allocations: 1.033 MB / 475.1 MB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005662/0.4113, allocations: 127.9 kB / 475.2 MB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005883/0.4119, allocations: 407.3 kB / 475.6 MB, free: 12.4 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4119, allocations: 0 / 475.6 MB, free: 12.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07342/0.4853, allocations: 21.55 MB / 497.2 MB, free: 7.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.62, allocations: 16.39 kB / 497.2 MB, free: 7.125 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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