Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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.0008593/0.0008593, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008824/0.0008824, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8677/0.8677, allocations: 173.4 MB / 200.5 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.909e-05/2.061e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002278/0.002298, allocations: 1.705 MB / 320.1 MB, free: 4.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008189/0.003117, allocations: 0.6193 MB / 320.7 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.175e-05/0.003199, allocations: 0 / 320.7 MB, free: 4.035 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.003302, allocations: 15.8 kB / 320.8 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.741e-05/0.00337, allocations: 43.64 kB / 320.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.003621, allocations: 47.81 kB / 320.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001558/0.003776, allocations: 127.3 kB / 321 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.003884, allocations: 12 kB / 321 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.656e-05/0.003961, allocations: 79.73 kB / 321.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.675e-05/0.004037, allocations: 31.91 kB / 321.1 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.004057, allocations: 8 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.205e-05/0.004139, allocations: 20 kB / 321.1 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.004163, allocations: 19.91 kB / 321.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.019e-05/0.004213, allocations: 39.91 kB / 321.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.004406, allocations: 127.6 kB / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.004408, allocations: 0 / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.004409, allocations: 4 kB / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.004414, allocations: 0 / 321.3 MB, free: 3.469 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004226/0.004836, allocations: 337.3 kB / 321.6 MB, free: 3.113 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.004875, allocations: 8.922 kB / 321.6 MB, free: 3.105 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.781e-05/0.004912, allocations: 42.75 kB / 321.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.005033, allocations: 28.83 kB / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.00522, allocations: 137.6 kB / 321.8 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.005232, allocations: 12.56 kB / 321.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.005255, allocations: 8.375 kB / 321.9 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.005404, allocations: 97.16 kB / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.005414, allocations: 0 / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.005425, allocations: 4 kB / 322 MB, free: 2.746 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.00543, allocations: 4 kB / 322 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.089e-05/0.005521, allocations: 51.97 kB / 322 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000513/0.006034, allocations: 414.9 kB / 322.4 MB, free: 2.234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.006235, allocations: 86.52 kB / 322.5 MB, free: 2.141 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.239e-05/0.006267, allocations: 20.86 kB / 322.5 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.006279, allocations: 4 kB / 322.5 MB, free: 2.113 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.006296, allocations: 34.59 kB / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.006297, allocations: 0 / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001803/0.006477, allocations: 97.58 kB / 322.7 MB, free: 1.969 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.006506, allocations: 51.41 kB / 322.7 MB, free: 1.906 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.085e-05/0.006577, allocations: 125.8 kB / 322.8 MB, free: 1.773 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.618e-06/0.006586, allocations: 25.7 kB / 322.9 MB, free: 1.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.006636, allocations: 116 kB / 323 MB, free: 1.625 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.006656, allocations: 39.69 kB / 323 MB, free: 1.586 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.006689, allocations: 29.7 kB / 323 MB, free: 1.551 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.444e-05/0.006764, allocations: 322.8 kB / 323.4 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.135e-05/0.006795, allocations: 19.98 kB / 323.4 MB, free: 1.207 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.397e-05/0.006839, allocations: 51.42 kB / 323.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.638e-05/0.006915, allocations: 75.38 kB / 323.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.006917, allocations: 0 / 323.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001133/0.007031, allocations: 117.5 kB / 323.6 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.007043, allocations: 4 kB / 323.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.007048, allocations: 0 / 323.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.007059, allocations: 4 kB / 323.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.135e-05/0.00713, allocations: 27.92 kB / 323.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.007135, allocations: 0 / 323.6 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.132e-05/0.007166, allocations: 15.88 kB / 323.7 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.007173, allocations: 4 kB / 323.7 MB, free: 0.8828 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 initialization (13): * Single equations (assignments): 13 * 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 6.349e-05/0.007236, allocations: 117.8 kB / 323.8 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.568e-05/0.007252, allocations: 7.953 kB / 323.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.007279, allocations: 16.52 kB / 323.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.007281, allocations: 4 kB / 323.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.007285, allocations: 0 / 323.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.007289, allocations: 3.984 kB / 323.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.007442, allocations: 164.6 kB / 324 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.007444, allocations: 0 / 324 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.752e-05/0.007532, allocations: 27.92 kB / 324 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.007534, allocations: 0 / 324 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.007544, allocations: 4.094 kB / 324 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.007545, allocations: 3.938 kB / 324 MB, free: 496 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.007547, allocations: 4 kB / 324 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.007726, allocations: 215.7 kB / 324.2 MB, free: 260 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.16e-05/0.007737, allocations: 11.89 kB / 324.2 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.007748, allocations: 0 / 324.2 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.007789, allocations: 4 kB / 324.2 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.007803, allocations: 8.031 kB / 324.2 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.007806, allocations: 3.938 kB / 324.3 MB, free: 232 kB / 282.7 MB Notification: Performance of sorting global known variables: time 3.435e-05/0.00784, allocations: 99.2 kB / 324.3 MB, free: 132 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00784, allocations: 0 / 324.3 MB, free: 132 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001683/0.008009, allocations: 24 kB / 324.4 MB, free: 108 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * 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 (8): * Single equations (assignments): 8 * 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.0003538/0.008363, allocations: 0.7358 MB / 325.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.008492, allocations: 51.97 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.008494, allocations: 0 / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.017e-05/0.008524, allocations: 35.91 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.008773, allocations: 19.22 kB / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.01008, allocations: 1.626 MB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.726e-05/0.01015, allocations: 92.25 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.0102, allocations: 8.5 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.064e-05/0.01025, allocations: 32.77 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01025, allocations: 0 / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.0261, allocations: 3.004 MB / 330 MB, free: 10.49 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.408/6.435, allocations: 7.312 kB / 330 MB, free: 10.49 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.042476834729314]