Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 114.4 kB / 17.72 MB, free: 5.434 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.001619/0.001619, allocations: 183.1 kB / 18.65 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 55.91 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09225, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.006355/0.09866, allocations: 4.517 MB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1968/0.2955, allocations: 1.733 MB / 380.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004158/0.2959, allocations: 14.62 kB / 380.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.2972, allocations: 425.4 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.2984, allocations: 422.5 kB / 381.7 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009043/0.2994, allocations: 310 kB / 382 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00144/0.3008, allocations: 1.021 MB / 383 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.3013, allocations: 298.7 kB / 383.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005778/0.3019, allocations: 415.3 kB / 383.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006296/0.3025, allocations: 0.5075 MB / 384.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.3027, allocations: 96.78 kB / 384.3 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002451/0.3029, allocations: 129 kB / 384.5 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.3031, allocations: 227.9 kB / 384.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003717/0.3035, allocations: 460.5 kB / 385.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.3051, allocations: 1.271 MB / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3051, allocations: 1.25 kB / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3051, allocations: 0 / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.301e-05/0.3051, allocations: 0.6094 kB / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002521/0.3077, allocations: 1.242 MB / 387.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3077, allocations: 9.906 kB / 387.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.3079, allocations: 100.1 kB / 387.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.3081, allocations: 103.3 kB / 387.9 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009115/0.309, allocations: 0.567 MB / 388.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.309, allocations: 47.97 kB / 388.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.3091, allocations: 57.97 kB / 388.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.3104, allocations: 0.6474 MB / 389.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.3104, allocations: 4.844 kB / 389.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.3105, allocations: 25.78 kB / 389.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.3105, allocations: 14.5 kB / 389.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.3118, allocations: 0.5605 MB / 389.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.3155, allocations: 2.536 MB / 392.3 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00099/0.3166, allocations: 474.6 kB / 392.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007601/0.3173, allocations: 308.2 kB / 393.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.3174, allocations: 6.75 kB / 393.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.3174, allocations: 38.47 kB / 393.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.3174, allocations: 0 / 393.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004842/0.3223, allocations: 1.509 MB / 394.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3224, allocations: 62.81 kB / 394.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.3237, allocations: 0.9433 MB / 395.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.803e-05/0.3238, allocations: 35.23 kB / 395.7 MB, free: 2.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.3241, allocations: 406.9 kB / 396.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.3242, allocations: 216.3 kB / 396.3 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.3245, allocations: 118.1 kB / 396.4 MB, free: 2.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.395e-05/0.3246, allocations: 333 kB / 396.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/0.3252, allocations: 245.4 kB / 397 MB, free: 1.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/0.3259, allocations: 343.1 kB / 397.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.327, allocations: 0.5672 MB / 397.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.327, allocations: 0 / 397.9 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001614/0.3287, allocations: 0.7337 MB / 398.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.852e-05/0.3287, allocations: 10.28 kB / 398.6 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3287, allocations: 2.75 kB / 398.6 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.3288, allocations: 7.797 kB / 398.6 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008384/0.3296, allocations: 170.5 kB / 398.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.3296, allocations: 9.703 kB / 398.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/0.3303, allocations: 40.52 kB / 398.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-05/0.3304, allocations: 24.22 kB / 398.9 MB, free: 0.8164 MB / 318.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 (83): * Single equations (assignments): 83 * 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.0005328/0.3309, allocations: 272.7 kB / 399.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.3311, allocations: 89.66 kB / 399.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.3327, allocations: 0.6263 MB / 399.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.3327, allocations: 6.469 kB / 399.9 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.3327, allocations: 1.156 kB / 399.9 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3328, allocations: 5.969 kB / 399.9 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003733/0.3365, allocations: 1.808 MB / 401.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.3366, allocations: 11.47 kB / 401.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.3373, allocations: 140.6 kB / 401.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.57e-05/0.3373, allocations: 8.609 kB / 401.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.3374, allocations: 13.78 kB / 401.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.139e-05/0.3374, allocations: 4.688 kB / 401.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.358e-05/0.3374, allocations: 7.5 kB / 401.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3391, allocations: 0.7434 MB / 402.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.3395, allocations: 215.3 kB / 402.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.871e-05/0.3396, allocations: 13.59 kB / 402.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.34, allocations: 38.75 kB / 402.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3402, allocations: 39.88 kB / 402.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.3402, allocations: 22.78 kB / 402.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009204/0.3411, allocations: 0.6882 MB / 403.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3412, allocations: 4 kB / 403.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000659/0.3418, allocations: 153.9 kB / 403.8 MB, free: 13.89 MB / 334.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 (61): * Single equations (assignments): 61 * 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.002432/0.3443, allocations: 1.555 MB / 405.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.3457, allocations: 0.5777 MB / 405.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3457, allocations: 4.062 kB / 405.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006373/0.3464, allocations: 296 kB / 406.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008282/0.3472, allocations: 130.9 kB / 406.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009847/0.3571, allocations: 6.511 MB / 412.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.3576, allocations: 0.9592 MB / 413.8 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004294/0.3581, allocations: 101 kB / 413.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.3585, allocations: 291.3 kB / 414.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3585, allocations: 0 / 414.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.3961, allocations: 15.52 MB / 429.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.375/9.771, allocations: 7.875 kB / 429.7 MB, free: 7.031 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceStrokeBehaviour/ForceStrokeBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches