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.001646/0.001646, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002065, allocations: 204.6 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.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3133, allocations: 50.55 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007698/0.321, allocations: 6.432 MB / 415.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00377/0.3248, allocations: 1.909 MB / 417.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000842/0.3257, allocations: 19.94 kB / 417.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006713/0.3264, allocations: 218 kB / 417.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.3275, allocations: 428.8 kB / 417.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007674/0.3283, allocations: 371.5 kB / 418.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001562/0.3299, allocations: 1.51 MB / 419.6 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006734/0.3306, allocations: 0.4936 MB / 420.1 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007787/0.3314, allocations: 0.5723 MB / 420.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006732/0.332, allocations: 0.603 MB / 421.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.3322, allocations: 167.8 kB / 421.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.3325, allocations: 164 kB / 421.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002433/0.3327, allocations: 303.1 kB / 421.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005911/0.3333, allocations: 0.6611 MB / 422.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.3352, allocations: 1.898 MB / 424.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3352, allocations: 0 / 424.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3352, allocations: 0 / 424.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.649e-05/0.3352, allocations: 0 / 424.5 MB, free: 1.746 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.002979/0.3382, allocations: 1.471 MB / 425.9 MB, free: 228 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.3383, allocations: 8.031 kB / 425.9 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.3385, allocations: 148.4 kB / 426.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005405/0.339, allocations: 156.1 kB / 426.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.3402, allocations: 0.7077 MB / 426.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.514e-05/0.3403, allocations: 74 kB / 427 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3404, allocations: 96 kB / 427.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.3421, allocations: 0.9701 MB / 428.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.482e-05/0.3421, allocations: 19.88 kB / 428.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-05/0.3422, allocations: 40 kB / 428.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.3422, allocations: 24 kB / 428.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.3437, allocations: 0.7938 MB / 429 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.3487, allocations: 3.322 MB / 432.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.3501, allocations: 0.7931 MB / 433.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007169/0.3508, allocations: 453.3 kB / 433.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.864e-05/0.3509, allocations: 12.56 kB / 433.5 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.3509, allocations: 43.75 kB / 433.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=95): time 2.856e-06/0.3509, allocations: 0 / 433.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=119): time 0.008682/0.3596, allocations: 4.211 MB / 437.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.3597, allocations: 93.75 kB / 437.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008656/0.3606, allocations: 0.6408 MB / 438.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.3607, allocations: 45.7 kB / 438.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.361, allocations: 445.1 kB / 439 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.3613, allocations: 432.3 kB / 439.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.3615, allocations: 186.9 kB / 439.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.3617, allocations: 394.7 kB / 440 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000636/0.3624, allocations: 350.4 kB / 440.3 MB, free: 1.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007228/0.3631, allocations: 488.7 kB / 440.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.3645, allocations: 0.8665 MB / 441.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3645, allocations: 0 / 441.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002141/0.3667, allocations: 1.146 MB / 442.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3667, allocations: 8 kB / 442.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3667, allocations: 7.984 kB / 442.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.3671, allocations: 126.5 kB / 443 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009664/0.3681, allocations: 247.6 kB / 443.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003881/0.372, allocations: 4.977 MB / 448.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007134/0.3727, allocations: 31.98 kB / 448.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.3728, allocations: 39.98 kB / 448.2 MB, free: 8.914 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.0004871/0.3733, allocations: 284.6 kB / 448.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001699/0.3735, allocations: 111.4 kB / 448.6 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.3749, allocations: 0.7453 MB / 449.4 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.3749, allocations: 12 kB / 449.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.3749, allocations: 4 kB / 449.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.375, allocations: 7.969 kB / 449.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00395/0.3789, allocations: 2.615 MB / 452 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3789, allocations: 0 / 452 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.3798, allocations: 191.7 kB / 452.2 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004524/0.3802, allocations: 159.4 kB / 452.4 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.019e-05/0.3803, allocations: 27.98 kB / 452.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004245/0.3846, allocations: 6.002 MB / 458.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.3846, allocations: 0 / 458.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.3872, allocations: 1.661 MB / 460 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000403/0.3876, allocations: 256.5 kB / 460.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3877, allocations: 23.95 kB / 460.3 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005414/0.3883, allocations: 43.92 kB / 460.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.3884, allocations: 80.48 kB / 460.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.392e-05/0.3885, allocations: 31.98 kB / 460.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005756/0.3891, allocations: 459.1 kB / 460.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3891, allocations: 0 / 460.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009372/0.39, allocations: 260 kB / 461.2 MB, free: 11.24 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.002909/0.393, allocations: 2.247 MB / 463.4 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.3951, allocations: 1.281 MB / 464.7 MB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3951, allocations: 0 / 464.7 MB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.3964, allocations: 0.9829 MB / 465.7 MB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/0.3975, allocations: 198.9 kB / 465.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.4094, allocations: 8.223 MB / 474.1 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006008/0.41, allocations: 1.033 MB / 475.1 MB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000533/0.4106, allocations: 132 kB / 475.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/0.4111, allocations: 403.3 kB / 475.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of SimCode: time 1.893e-06/0.4111, allocations: 0 / 475.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05913/0.4702, allocations: 21.54 MB / 497.2 MB, free: 7.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.66, allocations: 16.36 kB / 497.2 MB, free: 7.094 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.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