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.001138/0.001138, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001205/0.001205, allocations: 200.7 kB / 18.73 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.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2999, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.006228/0.3062, allocations: 4.668 MB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003454/0.3097, allocations: 1.975 MB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005407/0.3103, allocations: 12 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008396/0.3112, allocations: 426.2 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.3123, allocations: 473.5 kB / 416.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007666/0.3131, allocations: 327.4 kB / 416.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.3143, allocations: 1.04 MB / 417.6 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004313/0.3147, allocations: 306.5 kB / 417.9 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005805/0.3153, allocations: 422.7 kB / 418.4 MB, free: 7.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005535/0.3159, allocations: 0.5137 MB / 418.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.316, allocations: 100 kB / 419 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002171/0.3163, allocations: 124 kB / 419.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.3165, allocations: 243.2 kB / 419.3 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003789/0.3169, allocations: 469.5 kB / 419.8 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.3182, allocations: 1.303 MB / 421.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3182, allocations: 0 / 421.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3182, allocations: 4 kB / 421.1 MB, free: 5.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.3182, allocations: 0 / 421.1 MB, free: 5.145 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.002212/0.3204, allocations: 1.233 MB / 422.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3205, allocations: 8.031 kB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.3206, allocations: 106.7 kB / 422.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004839/0.3211, allocations: 128.2 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000948/0.3221, allocations: 0.5872 MB / 423.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.3221, allocations: 49.25 kB / 423.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.202e-05/0.3222, allocations: 60 kB / 423.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.3234, allocations: 0.6246 MB / 423.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.3235, allocations: 0 / 423.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.166e-05/0.3235, allocations: 39.88 kB / 423.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3235, allocations: 12 kB / 423.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3246, allocations: 0.5205 MB / 424.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.3284, allocations: 2.556 MB / 427 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009153/0.3293, allocations: 464.4 kB / 427.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006468/0.33, allocations: 293.6 kB / 427.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.336e-05/0.3301, allocations: 4.438 kB / 427.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.3301, allocations: 39 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.134e-06/0.3301, allocations: 3.938 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004239/0.3344, allocations: 1.459 MB / 429.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.3344, allocations: 59.97 kB / 429.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.3356, allocations: 0.9654 MB / 430.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.3356, allocations: 37.7 kB / 430.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.3359, allocations: 416.7 kB / 430.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.3361, allocations: 226 kB / 430.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.3363, allocations: 122.6 kB / 431.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3364, allocations: 330 kB / 431.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/0.3369, allocations: 225.9 kB / 431.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005761/0.3375, allocations: 327.1 kB / 431.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.3386, allocations: 0.5518 MB / 432.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3386, allocations: 3.938 kB / 432.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001448/0.3401, allocations: 0.7115 MB / 433.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3401, allocations: 4 kB / 433.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3402, allocations: 4 kB / 433.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3402, allocations: 4 kB / 433.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.3409, allocations: 163.8 kB / 433.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.3409, allocations: 11.94 kB / 433.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005021/0.3415, allocations: 36.09 kB / 433.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/0.3415, allocations: 24 kB / 433.4 MB, free: 8.41 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.000366/0.3419, allocations: 285.5 kB / 433.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.342, allocations: 87.44 kB / 433.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.3433, allocations: 0.6127 MB / 434.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3434, allocations: 4 kB / 434.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.3434, allocations: 4 kB / 434.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3434, allocations: 7.922 kB / 434.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.3462, allocations: 1.78 MB / 436.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.3462, allocations: 4 kB / 436.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005298/0.3467, allocations: 119.9 kB / 436.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.3468, allocations: 4 kB / 436.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.3468, allocations: 19.94 kB / 436.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.807e-06/0.3468, allocations: 12.23 kB / 436.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3468, allocations: 8 kB / 436.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.348, allocations: 0.7281 MB / 437.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.3483, allocations: 208.5 kB / 437.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.3484, allocations: 16 kB / 437.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004174/0.3488, allocations: 35.91 kB / 437.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.3489, allocations: 52.25 kB / 437.4 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.349, allocations: 16 kB / 437.4 MB, free: 4.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008653/0.3499, allocations: 0.7021 MB / 438.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3499, allocations: 0 / 438.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.3505, allocations: 159.9 kB / 438.3 MB, free: 3.355 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.002353/0.3528, allocations: 1.53 MB / 439.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.3541, allocations: 0.5496 MB / 440.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3541, allocations: 0 / 440.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005342/0.3546, allocations: 279.5 kB / 440.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008116/0.3555, allocations: 138.8 kB / 440.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009565/0.365, allocations: 6.539 MB / 447.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.3656, allocations: 0.967 MB / 448.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004191/0.3661, allocations: 97.17 kB / 448.4 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/0.3665, allocations: 307.3 kB / 448.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of SimCode: time 2.564e-06/0.3665, allocations: 0 / 448.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04463/0.4111, allocations: 16 MB / 464.7 MB, free: 8.973 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.061/9.472, allocations: 15.84 kB / 464.7 MB, free: 8.957 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.0.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