Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008377/0.0008377, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008468/0.0008468, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8709/0.8709, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.262e-05/2.454e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.005557/0.005582, allocations: 5.829 MB / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002761/0.008343, allocations: 2.302 MB / 332.7 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003342/0.008677, allocations: 27.88 kB / 332.7 MB, free: 7.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005775/0.009255, allocations: 353.6 kB / 333.1 MB, free: 7.402 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007553/0.01001, allocations: 0.5547 MB / 333.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.01059, allocations: 468.1 kB / 334.1 MB, free: 6.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.01176, allocations: 1.612 MB / 335.7 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003749/0.01213, allocations: 322 kB / 336 MB, free: 4.434 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007219/0.01286, allocations: 0.9044 MB / 336.9 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004378/0.01329, allocations: 0.5376 MB / 337.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.01341, allocations: 160 kB / 337.6 MB, free: 2.832 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.01359, allocations: 191.9 kB / 337.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.01377, allocations: 338.8 kB / 338.1 MB, free: 2.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.01406, allocations: 478.8 kB / 338.6 MB, free: 1.844 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.01523, allocations: 2.021 MB / 340.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.01524, allocations: 0 / 340.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01524, allocations: 0 / 340.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.01525, allocations: 0 / 340.6 MB, free: 15.81 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001638/0.01689, allocations: 1.481 MB / 342.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.01692, allocations: 16.02 kB / 342.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.01705, allocations: 144.3 kB / 342.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.01733, allocations: 172 kB / 342.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000878/0.01821, allocations: 0.689 MB / 343.1 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/0.01826, allocations: 74 kB / 343.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.01835, allocations: 92 kB / 343.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.01943, allocations: 1.032 MB / 344.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.01945, allocations: 0 / 344.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.39e-05/0.01951, allocations: 40 kB / 344.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.01952, allocations: 24 kB / 344.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.02054, allocations: 0.8171 MB / 345.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.02361, allocations: 3.058 MB / 348.2 MB, free: 7.969 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.02472, allocations: 0.5982 MB / 348.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.02507, allocations: 294.5 kB / 349.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.02511, allocations: 8 kB / 349.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.02513, allocations: 42.5 kB / 349.2 MB, free: 7.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=58): time 1.653e-06/0.02513, allocations: 0 / 349.2 MB, free: 7.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.002438/0.02757, allocations: 1.686 MB / 350.9 MB, free: 5.316 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.02761, allocations: 89.09 kB / 350.9 MB, free: 5.211 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008554/0.02847, allocations: 1.053 MB / 352 MB, free: 4.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.0285, allocations: 37.7 kB / 352 MB, free: 4.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.02877, allocations: 0.5622 MB / 352.6 MB, free: 3.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.02888, allocations: 234 kB / 352.8 MB, free: 3.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.02905, allocations: 166.5 kB / 353 MB, free: 3.121 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.02914, allocations: 341.9 kB / 353.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/0.02957, allocations: 305.8 kB / 353.6 MB, free: 2.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005043/0.03008, allocations: 499.1 kB / 354.1 MB, free: 1.922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000884/0.03096, allocations: 0.7834 MB / 354.9 MB, free: 1.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.03097, allocations: 4 kB / 354.9 MB, free: 1.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001155/0.03212, allocations: 0.9711 MB / 355.9 MB, free: 88 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.03214, allocations: 8 kB / 355.9 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.03215, allocations: 4 kB / 355.9 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.03216, allocations: 12 kB / 355.9 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.03274, allocations: 275.6 kB / 356.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.03275, allocations: 11.94 kB / 356.2 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.03308, allocations: 51.95 kB / 356.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.03312, allocations: 39.98 kB / 356.3 MB, free: 15.69 MB / 330.7 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 (112): * Single equations (assignments): 112 * 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.0002506/0.03337, allocations: 285.5 kB / 356.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.38e-05/0.03346, allocations: 111.3 kB / 356.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005824/0.03405, allocations: 354.7 kB / 357 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.03405, allocations: 8 kB / 357 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.03406, allocations: 0 / 357 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.03406, allocations: 3.984 kB / 357 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.03623, allocations: 2.101 MB / 359.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.03624, allocations: 11.94 kB / 359.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.03665, allocations: 204.5 kB / 359.3 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.03666, allocations: 12 kB / 359.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.03669, allocations: 23.98 kB / 359.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.0367, allocations: 11.94 kB / 359.4 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.0367, allocations: 11.94 kB / 359.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009255/0.03763, allocations: 1.022 MB / 360.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.03775, allocations: 127.2 kB / 360.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/0.03782, allocations: 31.92 kB / 360.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.03813, allocations: 47.89 kB / 360.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.03821, allocations: 63.78 kB / 360.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.03823, allocations: 28 kB / 360.7 MB, free: 11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005986/0.03883, allocations: 0.719 MB / 361.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03883, allocations: 4 kB / 361.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004616/0.0393, allocations: 212 kB / 361.6 MB, free: 10.06 MB / 330.7 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.001681/0.04098, allocations: 1.87 MB / 363.5 MB, free: 8.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.04206, allocations: 0.6948 MB / 364.2 MB, free: 7.551 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.04206, allocations: 0 / 364.2 MB, free: 7.551 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000438/0.0425, allocations: 346 kB / 364.5 MB, free: 7.215 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007268/0.04323, allocations: 222.4 kB / 364.7 MB, free: 7.004 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008915/0.05214, allocations: 8.47 MB / 373.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.05245, allocations: 444 kB / 373.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003397/0.05279, allocations: 131.5 kB / 373.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/0.05317, allocations: 408.3 kB / 374.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.05317, allocations: 0 / 374.2 MB, free: 13.1 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03513/0.0883, allocations: 22.48 MB / 396.7 MB, free: 6.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.327, allocations: 3.984 kB / 396.7 MB, free: 6.824 MB / 362.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --stepSize=0.0001 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.000971241854131]