Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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.001288/0.001288, allocations: 118.9 kB / 17.83 MB, free: 5.203 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.001372/0.001372, allocations: 210.3 kB / 20.8 MB, free: 2.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 207.6 MB / 231.2 MB, free: 4.137 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3827/0.3827, allocations: 44.23 MB / 327.3 MB, free: 6.684 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 67.91 kB / 462.9 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3387, allocations: 61 MB / 0.5116 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003714/0.3424, allocations: 2.714 MB / 0.5143 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.3441, allocations: 1.001 MB / 0.5152 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002603/0.3444, allocations: 8.594 kB / 0.5153 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.3446, allocations: 57.38 kB / 0.5153 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.3448, allocations: 99.66 kB / 0.5154 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.3454, allocations: 152.2 kB / 0.5155 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.3458, allocations: 370.4 kB / 0.5159 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.346, allocations: 70.38 kB / 0.516 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.3462, allocations: 140.1 kB / 0.5161 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.3464, allocations: 139.5 kB / 0.5162 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.3465, allocations: 24.75 kB / 0.5163 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.3467, allocations: 47.72 kB / 0.5163 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.093e-05/0.3467, allocations: 57.41 kB / 0.5164 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.3469, allocations: 168.8 kB / 0.5165 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.3474, allocations: 367 kB / 0.5169 GB, free: 9.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3474, allocations: 1.438 kB / 0.5169 GB, free: 9.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3474, allocations: 0 / 0.5169 GB, free: 9.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3474, allocations: 0 / 0.5169 GB, free: 9.125 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008734/0.3483, allocations: 0.5993 MB / 0.5175 GB, free: 8.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3483, allocations: 17.14 kB / 0.5175 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.295e-05/0.3484, allocations: 12.09 kB / 0.5175 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.3484, allocations: 64.12 kB / 0.5175 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.3486, allocations: 50.56 kB / 0.5176 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.349, allocations: 275.9 kB / 0.5179 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.349, allocations: 21.88 kB / 0.5179 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.349, allocations: 40.77 kB / 0.5179 GB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.3495, allocations: 297.5 kB / 0.5182 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.3495, allocations: 10.69 kB / 0.5182 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.3495, allocations: 10.75 kB / 0.5182 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3495, allocations: 8.25 kB / 0.5182 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.3498, allocations: 176 kB / 0.5184 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3514, allocations: 1.328 MB / 0.5197 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.3517, allocations: 252.9 kB / 0.5199 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.153e-05/0.3518, allocations: 72.27 kB / 0.52 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.3518, allocations: 4 kB / 0.52 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.3518, allocations: 43.05 kB / 0.52 GB, free: 6.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.3518, allocations: 4 kB / 0.52 GB, free: 6.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004451/0.3523, allocations: 217.5 kB / 0.5203 GB, free: 5.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.3523, allocations: 162.2 kB / 0.5204 GB, free: 5.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3525, allocations: 216.1 kB / 0.5206 GB, free: 5.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.3525, allocations: 33.64 kB / 0.5206 GB, free: 5.371 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.478e-05/0.3526, allocations: 192.4 kB / 0.5208 GB, free: 5.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.3526, allocations: 87.22 kB / 0.5209 GB, free: 5.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.207e-05/0.3527, allocations: 73.77 kB / 0.521 GB, free: 5.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.096e-05/0.3527, allocations: 338.8 kB / 0.5213 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.428e-05/0.3528, allocations: 55.98 kB / 0.5214 GB, free: 4.621 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.353, allocations: 221.8 kB / 0.5216 GB, free: 4.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.3532, allocations: 285.8 kB / 0.5218 GB, free: 3.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3532, allocations: 0 / 0.5218 GB, free: 3.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000371/0.3536, allocations: 321 kB / 0.5222 GB, free: 3.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.3536, allocations: 8 kB / 0.5222 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3536, allocations: 4 kB / 0.5222 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.3536, allocations: 8.531 kB / 0.5222 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.3539, allocations: 87.91 kB / 0.5223 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.3539, allocations: 15.92 kB / 0.5223 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.3541, allocations: 35.92 kB / 0.5223 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.3541, allocations: 16 kB / 0.5223 GB, free: 3.504 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001052/0.3542, allocations: 153.7 kB / 0.5225 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3543, allocations: 31.8 kB / 0.5225 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000159/0.3545, allocations: 83.08 kB / 0.5226 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3545, allocations: 4 kB / 0.5226 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3545, allocations: 4 kB / 0.5226 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3545, allocations: 7.984 kB / 0.5226 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.355, allocations: 309.3 kB / 0.5229 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.355, allocations: 4 kB / 0.5229 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.3553, allocations: 67.91 kB / 0.523 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3553, allocations: 96 / 0.523 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3553, allocations: 15.92 kB / 0.523 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.3553, allocations: 4 kB / 0.523 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3553, allocations: 0 / 0.523 GB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.3557, allocations: 0.6335 MB / 0.5236 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.3558, allocations: 100.9 kB / 0.5237 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.3558, allocations: 8 kB / 0.5237 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.3561, allocations: 8 kB / 0.5237 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.3561, allocations: 19.98 kB / 0.5237 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.3561, allocations: 12.48 kB / 0.5237 GB, free: 1.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.812e-05/0.3562, allocations: 145.9 kB / 0.5239 GB, free: 1.812 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3562, allocations: 0 / 0.5239 GB, free: 1.812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000521/0.3567, allocations: 79.89 kB / 0.524 GB, free: 1.734 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.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 (23): * Single equations (assignments): 23 * 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.0005338/0.3572, allocations: 1.182 MB / 0.5251 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002882/0.3575, allocations: 180.4 kB / 0.5253 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3575, allocations: 320 / 0.5253 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.431e-05/0.3576, allocations: 76.05 kB / 0.5254 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008103/0.3584, allocations: 81.61 kB / 0.5254 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004383/0.3628, allocations: 3.547 MB / 0.5289 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.3633, allocations: 0.7755 MB / 0.5297 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.3634, allocations: 34.95 kB / 0.5297 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.3636, allocations: 83.41 kB / 0.5298 GB, free: 11.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3636, allocations: 0 / 0.5298 GB, free: 11.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.3883, allocations: 5.452 MB / 0.5351 GB, free: 6.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.785/9.174, allocations: 7.844 kB / 0.5351 GB, free: 6.047 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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: 12.55173043400282]