Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.001155/0.001155, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001193/0.001193, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.337/1.337, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001371/0.001371, allocations: 60.25 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1015, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.2067/0.3082, allocations: 6.327 MB / 381 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00374/0.312, allocations: 2.133 MB / 383.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007523/0.3129, allocations: 20.44 kB / 383.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009656/0.3139, allocations: 354.3 kB / 383.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.3152, allocations: 0.4895 MB / 384 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.3163, allocations: 430.7 kB / 384.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001834/0.3181, allocations: 1.551 MB / 385.9 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007166/0.3188, allocations: 0.5238 MB / 386.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009767/0.3198, allocations: 0.5745 MB / 387 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009657/0.3208, allocations: 0.6583 MB / 387.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003031/0.3211, allocations: 160.1 kB / 387.8 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004401/0.3216, allocations: 197.7 kB / 388 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.3218, allocations: 325.5 kB / 388.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006309/0.3225, allocations: 0.6652 MB / 389 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002404/0.3249, allocations: 1.938 MB / 391 MB, free: 5.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3249, allocations: 0 / 391 MB, free: 5.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3249, allocations: 1.781 kB / 391 MB, free: 5.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.448e-05/0.325, allocations: 0 / 391 MB, free: 5.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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003313/0.3283, allocations: 1.575 MB / 392.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3284, allocations: 12.75 kB / 392.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000168/0.3285, allocations: 146.1 kB / 392.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/0.3288, allocations: 136.2 kB / 392.8 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.33, allocations: 0.7169 MB / 393.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.744e-05/0.3301, allocations: 74 kB / 393.6 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.3303, allocations: 106.2 kB / 393.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002053/0.3323, allocations: 1.006 MB / 394.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.583e-05/0.3324, allocations: 5.734 kB / 394.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-05/0.3325, allocations: 36.03 kB / 394.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.3325, allocations: 31.16 kB / 394.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.3345, allocations: 0.8841 MB / 395.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.3396, allocations: 3.638 MB / 399.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.3424, allocations: 0.9029 MB / 400.2 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007441/0.3432, allocations: 372.3 kB / 400.6 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.3432, allocations: 9.797 kB / 400.6 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.3433, allocations: 41.3 kB / 400.6 MB, free: 140 kB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.036e-06/0.3433, allocations: 0 / 400.6 MB, free: 140 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005257/0.3486, allocations: 1.821 MB / 402.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3486, allocations: 88.17 kB / 402.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.3501, allocations: 0.9751 MB / 403.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.538e-05/0.3501, allocations: 36.3 kB / 403.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003954/0.3505, allocations: 0.5415 MB / 404.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3507, allocations: 239.8 kB / 404.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.351, allocations: 158.6 kB / 404.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3511, allocations: 337.3 kB / 404.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009736/0.3521, allocations: 339.7 kB / 405.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.3531, allocations: 0.5202 MB / 405.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/0.355, allocations: 0.8309 MB / 406.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.355, allocations: 5.406 kB / 406.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002432/0.3575, allocations: 1.021 MB / 407.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3575, allocations: 8.219 kB / 407.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.3575, allocations: 5.781 kB / 407.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.3576, allocations: 9.281 kB / 407.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.3588, allocations: 287.2 kB / 407.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.6e-05/0.3589, allocations: 9.219 kB / 407.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009761/0.3599, allocations: 70.42 kB / 407.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.063e-05/0.36, allocations: 33.59 kB / 407.9 MB, free: 11.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (108): * Single equations (assignments): 108 * 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.0005316/0.3605, allocations: 287.4 kB / 408.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002364/0.3607, allocations: 110.4 kB / 408.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.3618, allocations: 378.6 kB / 408.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.3618, allocations: 10.72 kB / 408.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.3619, allocations: 5.281 kB / 408.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3619, allocations: 9.328 kB / 408.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/0.3664, allocations: 2.292 MB / 411 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.3665, allocations: 6.562 kB / 411 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008645/0.3673, allocations: 211.5 kB / 411.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.331e-05/0.3674, allocations: 9.875 kB / 411.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.196e-05/0.3674, allocations: 26.36 kB / 411.3 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/0.3674, allocations: 13.94 kB / 411.3 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.3675, allocations: 16.14 kB / 411.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.3692, allocations: 1.024 MB / 412.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003372/0.3695, allocations: 194 kB / 412.5 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.3697, allocations: 22.47 kB / 412.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000697/0.3704, allocations: 58.97 kB / 412.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3705, allocations: 61.16 kB / 412.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.88e-05/0.3706, allocations: 25.69 kB / 412.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009721/0.3716, allocations: 0.6765 MB / 413.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.3716, allocations: 0 / 413.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009612/0.3726, allocations: 214.8 kB / 413.5 MB, free: 7.805 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.002989/0.3756, allocations: 1.852 MB / 415.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.3776, allocations: 0.7719 MB / 416.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.3776, allocations: 0 / 416.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008032/0.3784, allocations: 373.8 kB / 416.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.3798, allocations: 207.7 kB / 416.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.3937, allocations: 8.415 MB / 425.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.3944, allocations: 1.018 MB / 426.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006189/0.395, allocations: 127.2 kB / 426.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005406/0.3956, allocations: 379.3 kB / 426.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3956, allocations: 0 / 426.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.4442, allocations: 20.06 MB / 446.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.559/10, allocations: 15.64 kB / 446.7 MB, free: 6.492 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0024 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches