Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "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: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 189.8 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 43.94 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2799, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.008826/0.2888, allocations: 6.472 MB / 429.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004402/0.2932, allocations: 2.212 MB / 431.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007162/0.2939, allocations: 19.94 kB / 431.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008743/0.2948, allocations: 357.8 kB / 431.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.2959, allocations: 0.4889 MB / 432.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009274/0.2969, allocations: 455.3 kB / 432.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.2987, allocations: 1.534 MB / 434.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005901/0.2993, allocations: 362.9 kB / 434.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007543/0.3, allocations: 0.5918 MB / 435.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008985/0.3009, allocations: 0.677 MB / 435.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002054/0.3011, allocations: 160 kB / 435.9 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003046/0.3014, allocations: 180 kB / 436.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003106/0.3017, allocations: 323 kB / 436.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006363/0.3024, allocations: 0.6727 MB / 437.1 MB, free: 80 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002082/0.3044, allocations: 1.934 MB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3045, allocations: 0 / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3045, allocations: 0 / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.99e-05/0.3045, allocations: 4 kB / 439 MB, free: 14.14 MB / 350.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.003281/0.3078, allocations: 1.501 MB / 440.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3078, allocations: 12.03 kB / 440.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001939/0.308, allocations: 152.1 kB / 440.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.3082, allocations: 136.1 kB / 440.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.3095, allocations: 0.6551 MB / 441.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.245e-05/0.3096, allocations: 70.38 kB / 441.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.3098, allocations: 103.9 kB / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.3118, allocations: 1.013 MB / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.554e-05/0.3118, allocations: 4 kB / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.491e-05/0.3119, allocations: 40 kB / 442.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/0.3119, allocations: 20 kB / 442.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/0.314, allocations: 0.8874 MB / 443.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005893/0.3199, allocations: 3.539 MB / 447.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/0.3229, allocations: 0.8636 MB / 448 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007986/0.3237, allocations: 338.5 kB / 448.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.465e-05/0.3237, allocations: 11.98 kB / 448.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.3237, allocations: 42.42 kB / 448.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.285e-06/0.3238, allocations: 7.938 kB / 448.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.005158/0.3289, allocations: 1.807 MB / 450.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.329, allocations: 85.11 kB / 450.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.3305, allocations: 0.978 MB / 451.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.119e-05/0.3306, allocations: 41.7 kB / 451.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004408/0.331, allocations: 0.535 MB / 451.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.3312, allocations: 238 kB / 452.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.3315, allocations: 162.5 kB / 452.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3317, allocations: 337.9 kB / 452.6 MB, free: 256 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009361/0.3326, allocations: 341.8 kB / 452.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.3337, allocations: 0.526 MB / 453.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/0.3356, allocations: 0.8164 MB / 454.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3356, allocations: 0 / 454.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002535/0.3381, allocations: 1.024 MB / 455.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3381, allocations: 8 kB / 455.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3381, allocations: 8 kB / 455.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.3382, allocations: 8 kB / 455.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3394, allocations: 283.9 kB / 455.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-05/0.3394, allocations: 11.94 kB / 455.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009332/0.3404, allocations: 75.92 kB / 455.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/0.3404, allocations: 31.98 kB / 455.7 MB, free: 12.97 MB / 366.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.0005841/0.341, allocations: 285.6 kB / 456 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.3412, allocations: 107.3 kB / 456.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.3423, allocations: 394.1 kB / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.3423, allocations: 8 kB / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3423, allocations: 0 / 456.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3423, allocations: 3.984 kB / 456.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004292/0.3466, allocations: 2.264 MB / 458.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.3466, allocations: 4 kB / 458.7 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000878/0.3475, allocations: 203.7 kB / 458.9 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.3475, allocations: 8.156 kB / 458.9 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-05/0.3476, allocations: 35.98 kB / 459 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.557e-05/0.3476, allocations: 15.88 kB / 459 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.3476, allocations: 11.94 kB / 459 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.3496, allocations: 1.037 MB / 460 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.3498, allocations: 111.3 kB / 460.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.35, allocations: 23.98 kB / 460.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/0.3506, allocations: 59.83 kB / 460.2 MB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.3507, allocations: 71.66 kB / 460.3 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.335e-05/0.3508, allocations: 24 kB / 460.3 MB, free: 8.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000972/0.3517, allocations: 0.6825 MB / 461 MB, free: 7.398 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3517, allocations: 4 kB / 461 MB, free: 7.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00085/0.3526, allocations: 211.9 kB / 461.2 MB, free: 7.188 MB / 366.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.003378/0.356, allocations: 1.837 MB / 463.1 MB, free: 5.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.3579, allocations: 0.7384 MB / 463.8 MB, free: 4.648 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.3579, allocations: 0 / 463.8 MB, free: 4.648 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008526/0.3587, allocations: 363.7 kB / 464.2 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.36, allocations: 199.6 kB / 464.4 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.3751, allocations: 8.434 MB / 472.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007798/0.3759, allocations: 1.022 MB / 473.8 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000579/0.3765, allocations: 119.2 kB / 473.9 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005771/0.377, allocations: 383.3 kB / 474.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.377, allocations: 0 / 474.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06474/0.4418, allocations: 20.84 MB / 495.1 MB, free: 5.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.64, allocations: 18.81 kB / 495.2 MB, free: 5.004 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.00119952 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable cActuator.flange.f in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv. Warning: Get data of variable cActuator.flange.f from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv failed! Error: Could not read variable pmActuator.flange.f in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv. Warning: Get data of variable pmActuator.flange.f from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv failed! Error: Could not read variable pmActuator.coil.Phi in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv. Warning: Get data of variable pmActuator.coil.Phi from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv failed! Error: Could not read variable pmActuator.coil.L_stat in file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv. Warning: Get data of variable pmActuator.coil.L_stat from file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.32215093999912]