Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001228/0.001228, allocations: 121 kB / 18.5 MB, free: 4.562 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.001316/0.001316, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.412/1.412, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 47.94 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1029, allocations: 53.33 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003589/0.1065, allocations: 2.286 MB / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1079, allocations: 0.7596 MB / 430.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.108, allocations: 7.938 kB / 430.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1082, allocations: 39.59 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.1085, allocations: 83.31 kB / 430.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.1088, allocations: 111.8 kB / 430.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.1092, allocations: 302.6 kB / 430.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1093, allocations: 52.36 kB / 430.6 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1095, allocations: 107.6 kB / 430.7 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.1096, allocations: 119.4 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.803e-05/0.1097, allocations: 20 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.459e-05/0.1097, allocations: 20 kB / 430.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.814e-05/0.1098, allocations: 51.83 kB / 431 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1099, allocations: 123.4 kB / 431.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.1102, allocations: 270.8 kB / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1102, allocations: 0 / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1102, allocations: 0 / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1102, allocations: 0 / 431.3 MB, free: 440 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.1782/0.2884, allocations: 0.5172 MB / 431.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.2884, allocations: 9.469 kB / 431.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.999e-05/0.2885, allocations: 9.156 kB / 431.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.2885, allocations: 58.58 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.2886, allocations: 30.12 kB / 432 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.2889, allocations: 260.3 kB / 432.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.2889, allocations: 17.91 kB / 432.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.289, allocations: 22.78 kB / 432.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/0.2894, allocations: 239.2 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.2894, allocations: 9.953 kB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.2895, allocations: 8.219 kB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.2895, allocations: 6.438 kB / 432.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.2898, allocations: 144.6 kB / 432.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.2909, allocations: 1.053 MB / 433.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.2913, allocations: 208.5 kB / 433.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.2915, allocations: 66.02 kB / 434 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.2915, allocations: 3.609 kB / 434 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.2915, allocations: 38.38 kB / 434 MB, free: 9.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.422e-06/0.2915, allocations: 1.25 kB / 434 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005102/0.292, allocations: 201 kB / 434.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.292, allocations: 136.9 kB / 434.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.2922, allocations: 193.3 kB / 434.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.2922, allocations: 28.39 kB / 434.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.2922, allocations: 162 kB / 434.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.2923, allocations: 69.92 kB / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.2923, allocations: 56.44 kB / 434.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.528e-05/0.2924, allocations: 330.1 kB / 435.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.2925, allocations: 56.38 kB / 435.2 MB, free: 9.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2927, allocations: 169.1 kB / 435.4 MB, free: 8.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.293, allocations: 236.3 kB / 435.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.293, allocations: 1.438 kB / 435.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004222/0.2934, allocations: 257.8 kB / 435.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2934, allocations: 10.34 kB / 435.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2934, allocations: 4.469 kB / 435.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.2934, allocations: 4.75 kB / 435.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.2937, allocations: 70.36 kB / 436 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.2937, allocations: 9.812 kB / 436 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.2938, allocations: 29.77 kB / 436 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.2938, allocations: 12.84 kB / 436 MB, free: 8.812 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * 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 8.878e-05/0.2939, allocations: 148.6 kB / 436.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.562e-05/0.294, allocations: 20.78 kB / 436.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.477e-05/0.2941, allocations: 20.16 kB / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2941, allocations: 2.438 kB / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.2941, allocations: 1.281 kB / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2941, allocations: 4.016 kB / 436.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.2944, allocations: 267.8 kB / 436.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2944, allocations: 1.656 kB / 436.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.2947, allocations: 59.97 kB / 436.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2947, allocations: 6.219 kB / 436.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.2947, allocations: 11.64 kB / 436.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.2947, allocations: 2.281 kB / 436.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2947, allocations: 1.094 kB / 436.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.2952, allocations: 0.5273 MB / 437.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-05/0.2952, allocations: 96.92 kB / 437.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.2953, allocations: 9.203 kB / 437.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.2955, allocations: 6.594 kB / 437.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.2955, allocations: 11.98 kB / 437.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.2955, allocations: 7.672 kB / 437.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.939e-05/0.2956, allocations: 140.6 kB / 437.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2956, allocations: 7.719 kB / 437.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004194/0.296, allocations: 67.34 kB / 437.4 MB, free: 7.832 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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 (16): * Single equations (assignments): 16 * 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.000592/0.2966, allocations: 1.062 MB / 438.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003415/0.297, allocations: 147.5 kB / 438.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.297, allocations: 1.094 kB / 438.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.2971, allocations: 68.89 kB / 438.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.2977, allocations: 71.31 kB / 438.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.3008, allocations: 3.052 MB / 441.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.3009, allocations: 0.7461 MB / 442.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.301, allocations: 27.39 kB / 442.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.21e-05/0.3011, allocations: 66.25 kB / 442.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3011, allocations: 1.219 kB / 442.6 MB, free: 3.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.3273, allocations: 4.745 MB / 447.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.532, allocations: 15.41 kB / 447.4 MB, free: 2.977 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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: 12.757348201994319]