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.001539/0.001539, allocations: 112.2 kB / 18.49 MB, free: 4.539 MB / 14.72 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.001827/0.001827, allocations: 218.9 kB / 21.46 MB, free: 1.586 MB / 14.72 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 1.47/1.47, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.92 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1082, allocations: 53.33 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.008709/0.1169, allocations: 6.559 MB / 433.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005026/0.1219, allocations: 2.396 MB / 436 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007539/0.1227, allocations: 19.94 kB / 436 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008849/0.1235, allocations: 369.7 kB / 436.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001231/0.1248, allocations: 0.5394 MB / 436.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009218/0.1257, allocations: 458 kB / 437.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.1273, allocations: 1.561 MB / 438.9 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005282/0.1278, allocations: 361.5 kB / 439.3 MB, free: 8.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000725/0.1285, allocations: 0.6151 MB / 439.9 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007593/0.1293, allocations: 0.677 MB / 440.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.1295, allocations: 160 kB / 440.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002984/0.1298, allocations: 203.9 kB / 440.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002886/0.1301, allocations: 327 kB / 441.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006051/0.1307, allocations: 0.6804 MB / 441.9 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002046/0.1327, allocations: 1.985 MB / 443.9 MB, free: 3.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1327, allocations: 0 / 443.9 MB, free: 3.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1327, allocations: 0 / 443.9 MB, free: 3.852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.1328, allocations: 0 / 443.9 MB, free: 3.852 MB / 366.1 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.003079/0.1358, allocations: 1.58 MB / 445.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1359, allocations: 12.03 kB / 445.5 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.484e-05/0.1359, allocations: 26.19 kB / 445.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001819/0.1361, allocations: 156.3 kB / 445.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005292/0.1366, allocations: 160.1 kB / 445.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.1379, allocations: 0.7504 MB / 446.6 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.058e-05/0.138, allocations: 74 kB / 446.6 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.1381, allocations: 96 kB / 446.7 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1813/0.3194, allocations: 0.9818 MB / 447.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-05/0.3195, allocations: 4.531 kB / 447.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.3196, allocations: 38.62 kB / 447.7 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.3196, allocations: 23.38 kB / 447.8 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/0.3215, allocations: 0.8165 MB / 448.6 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004678/0.3261, allocations: 3.655 MB / 452.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/0.3281, allocations: 0.5842 MB / 452.8 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005722/0.3287, allocations: 298.2 kB / 453.1 MB, free: 21.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.682e-05/0.3287, allocations: 11.78 kB / 453.1 MB, free: 21.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.3288, allocations: 42.03 kB / 453.2 MB, free: 21.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.314e-06/0.3288, allocations: 0 / 453.2 MB, free: 21.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.004206/0.333, allocations: 1.686 MB / 454.9 MB, free: 20.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.333, allocations: 88.28 kB / 454.9 MB, free: 20.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.3344, allocations: 1.036 MB / 456 MB, free: 20.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.3344, allocations: 42.19 kB / 456 MB, free: 20 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003166/0.3347, allocations: 0.5575 MB / 456.6 MB, free: 19.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.3349, allocations: 240.4 kB / 456.8 MB, free: 19.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.3352, allocations: 165.3 kB / 457 MB, free: 19.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.705e-05/0.3353, allocations: 340.6 kB / 457.3 MB, free: 19.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007431/0.336, allocations: 304 kB / 457.6 MB, free: 18.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009255/0.3369, allocations: 0.4891 MB / 458.1 MB, free: 18.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.3383, allocations: 0.7803 MB / 458.9 MB, free: 18.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3384, allocations: 5.156 kB / 458.9 MB, free: 18.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001967/0.3403, allocations: 0.9758 MB / 459.9 MB, free: 17.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3403, allocations: 7.156 kB / 459.9 MB, free: 17.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.3404, allocations: 5.438 kB / 459.9 MB, free: 17.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.3404, allocations: 11.59 kB / 459.9 MB, free: 17.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3416, allocations: 278.6 kB / 460.2 MB, free: 17.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.262e-05/0.3416, allocations: 11.69 kB / 460.2 MB, free: 17.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000805/0.3424, allocations: 53.06 kB / 460.2 MB, free: 17.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/0.3424, allocations: 36.92 kB / 460.2 MB, free: 17.72 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 (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.0004225/0.3429, allocations: 295.8 kB / 460.5 MB, free: 17.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.343, allocations: 110.2 kB / 460.6 MB, free: 17.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000828/0.3439, allocations: 349 kB / 461 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3439, allocations: 11.69 kB / 461 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.3439, allocations: 3.391 kB / 461 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3439, allocations: 4.906 kB / 461 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003666/0.3476, allocations: 2.292 MB / 463.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.3476, allocations: 7 kB / 463.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008261/0.3484, allocations: 208.8 kB / 463.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.3484, allocations: 13.88 kB / 463.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.3485, allocations: 26.42 kB / 463.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.3485, allocations: 10.08 kB / 463.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.3485, allocations: 11.88 kB / 463.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.3499, allocations: 1.034 MB / 464.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.3501, allocations: 196.3 kB / 464.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.3502, allocations: 30.64 kB / 464.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006036/0.3508, allocations: 48.97 kB / 464.9 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.351, allocations: 61.95 kB / 464.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.351, allocations: 26.12 kB / 465 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000929/0.3519, allocations: 0.7182 MB / 465.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3519, allocations: 0 / 465.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008128/0.3527, allocations: 212.7 kB / 465.9 MB, free: 14.64 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.002847/0.3556, allocations: 1.855 MB / 467.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.3572, allocations: 0.6941 MB / 468.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3572, allocations: 5.188 kB / 468.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000718/0.3579, allocations: 339.8 kB / 468.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.359, allocations: 224.9 kB / 469 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.3713, allocations: 8.466 MB / 477.5 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005319/0.3718, allocations: 1.029 MB / 478.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005865/0.3724, allocations: 130.8 kB / 478.6 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.3728, allocations: 402.7 kB / 479 MB, free: 7.113 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3728, allocations: 0 / 479 MB, free: 7.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04363/0.4165, allocations: 20.96 MB / 500 MB, free: 6.129 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.899/10.32, allocations: 12.88 kB / 500 MB, free: 6.121 MB / 382.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 18.723388354992494]