Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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.ForceStrokeBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.00185, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3272, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.00678/0.334, allocations: 4.676 MB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003949/0.338, allocations: 1.979 MB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.3385, allocations: 11.94 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009133/0.3395, allocations: 426.2 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001098/0.3406, allocations: 461.5 kB / 416.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008162/0.3415, allocations: 326.9 kB / 416.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.3428, allocations: 1.036 MB / 417.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000501/0.3433, allocations: 302.5 kB / 417.9 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006784/0.344, allocations: 426.6 kB / 418.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006554/0.3447, allocations: 0.5137 MB / 418.9 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.3448, allocations: 99.98 kB / 419 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.3451, allocations: 128 kB / 419.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.3453, allocations: 243.2 kB / 419.3 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004756/0.3458, allocations: 465.6 kB / 419.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001603/0.3474, allocations: 1.303 MB / 421.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3474, allocations: 0 / 421.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3474, allocations: 0 / 421.1 MB, free: 5.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.3475, allocations: 0 / 421.1 MB, free: 5.152 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002355/0.3498, allocations: 1.237 MB / 422.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.3499, allocations: 12.03 kB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.35, allocations: 98.69 kB / 422.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005081/0.3505, allocations: 136.2 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.3516, allocations: 0.5833 MB / 423.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.3516, allocations: 49.3 kB / 423.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.3517, allocations: 60 kB / 423.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.3529, allocations: 0.6246 MB / 423.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.3529, allocations: 4 kB / 423.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.353, allocations: 24 kB / 423.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.353, allocations: 23.94 kB / 423.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.3541, allocations: 0.5204 MB / 424.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00384/0.358, allocations: 2.545 MB / 427 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/0.3589, allocations: 476.4 kB / 427.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006402/0.3596, allocations: 278 kB / 427.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-05/0.3596, allocations: 20.41 kB / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.3597, allocations: 31 kB / 427.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.034e-06/0.3597, allocations: 0 / 427.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004185/0.3639, allocations: 1.466 MB / 429.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.3639, allocations: 59.91 kB / 429.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.3651, allocations: 0.9577 MB / 430.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.3652, allocations: 37.7 kB / 430.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.3655, allocations: 424.7 kB / 430.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3657, allocations: 222.1 kB / 430.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.3659, allocations: 118.6 kB / 431 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.366, allocations: 334 kB / 431.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005189/0.3666, allocations: 225.9 kB / 431.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/0.3672, allocations: 327.1 kB / 431.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.3683, allocations: 0.5479 MB / 432.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3683, allocations: 3.938 kB / 432.5 MB, free: 9.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001425/0.3697, allocations: 0.7194 MB / 433.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3697, allocations: 4 kB / 433.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3698, allocations: 4 kB / 433.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3698, allocations: 4 kB / 433.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007771/0.3706, allocations: 167.8 kB / 433.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3706, allocations: 4 kB / 433.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004899/0.3711, allocations: 40.03 kB / 433.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.3711, allocations: 20 kB / 433.4 MB, free: 8.418 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMin.contact,actuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003807/0.3715, allocations: 285.5 kB / 433.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3717, allocations: 87.44 kB / 433.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.373, allocations: 0.6127 MB / 434.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.373, allocations: 8 kB / 434.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.373, allocations: 0 / 434.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.373, allocations: 3.984 kB / 434.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002922/0.3759, allocations: 1.784 MB / 436.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.376, allocations: 4 kB / 436.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.3765, allocations: 127.8 kB / 436.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.3765, allocations: 4 kB / 436.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.609e-05/0.3766, allocations: 12 kB / 436.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/0.3766, allocations: 11.94 kB / 436.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.3766, allocations: 8.234 kB / 436.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.3778, allocations: 0.732 MB / 437.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.3781, allocations: 212.4 kB / 437.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.576e-05/0.3782, allocations: 12 kB / 437.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.3787, allocations: 35.97 kB / 437.3 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3788, allocations: 48.31 kB / 437.4 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-05/0.3788, allocations: 24 kB / 437.4 MB, free: 4.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009257/0.3798, allocations: 0.6982 MB / 438.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3798, allocations: 0 / 438.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005821/0.3803, allocations: 155.9 kB / 438.3 MB, free: 3.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002784/0.3831, allocations: 1.522 MB / 439.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.3844, allocations: 0.5497 MB / 440.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3844, allocations: 0 / 440.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005434/0.385, allocations: 279.3 kB / 440.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.3858, allocations: 147.4 kB / 440.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.396, allocations: 6.542 MB / 447.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/0.3966, allocations: 0.9631 MB / 448.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004441/0.3971, allocations: 105.2 kB / 448.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004841/0.3976, allocations: 307.3 kB / 448.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3976, allocations: 0 / 448.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04996/0.4476, allocations: 16 MB / 464.7 MB, free: 8.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.843/10.29, allocations: 8.422 kB / 464.7 MB, free: 8.969 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.csv --start-time -4 --stop-time 4 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0032 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceStrokeBehaviour/ForceStrokeBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches