Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 120.1 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001892/0.001892, allocations: 214.3 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 230.4 MB / 254.7 MB, free: 14.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2347/0.2347, allocations: 46.92 MB / 357.7 MB, free: 10.15 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002387/0.002387, allocations: 76.22 kB / 0.4916 GB, free: 7.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1252, allocations: 66.05 MB / 0.5561 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00495/0.1301, allocations: 3.046 MB / 0.5591 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1323, allocations: 1.083 MB / 0.5602 GB, free: 1.359 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.1326, allocations: 11.94 kB / 0.5602 GB, free: 1.348 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.1328, allocations: 55.38 kB / 0.5602 GB, free: 1.293 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.1331, allocations: 126.9 kB / 0.5603 GB, free: 1.168 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006985/0.1338, allocations: 175.5 kB / 0.5605 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005954/0.1344, allocations: 461.8 kB / 0.561 GB, free: 0.543 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1346, allocations: 75.59 kB / 0.561 GB, free: 472 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1348, allocations: 167.4 kB / 0.5612 GB, free: 304 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.1351, allocations: 175.2 kB / 0.5614 GB, free: 128 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.263e-05/0.1351, allocations: 36 kB / 0.5614 GB, free: 92 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.1353, allocations: 55.97 kB / 0.5614 GB, free: 36 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.339e-05/0.1354, allocations: 71.78 kB / 0.5615 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.1355, allocations: 195 kB / 0.5617 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000564/0.1361, allocations: 442.2 kB / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1361, allocations: 0 / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1361, allocations: 0 / 0.5621 GB, free: 15.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.1361, allocations: 7.875 kB / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001107/0.1372, allocations: 0.6625 MB / 0.5628 GB, free: 14.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1373, allocations: 12.03 kB / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.74e-05/0.1373, allocations: 9.188 kB / 0.5628 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.272e-05/0.1374, allocations: 74.72 kB / 0.5629 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.1377, allocations: 72.62 kB / 0.5629 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004646/0.1382, allocations: 299.4 kB / 0.5632 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.084e-05/0.1382, allocations: 29.38 kB / 0.5632 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.245e-05/0.1383, allocations: 43.89 kB / 0.5633 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006061/0.1389, allocations: 355.6 kB / 0.5636 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1389, allocations: 15.92 kB / 0.5636 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.139, allocations: 12 kB / 0.5637 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.139, allocations: 8 kB / 0.5637 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004478/0.1394, allocations: 222.1 kB / 0.5639 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.1417, allocations: 1.593 MB / 0.5654 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.1423, allocations: 295.7 kB / 0.5657 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.1425, allocations: 93.06 kB / 0.5658 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.1425, allocations: 4 kB / 0.5658 GB, free: 11.26 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.1426, allocations: 42.5 kB / 0.5658 GB, free: 11.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 1.774e-06/0.1426, allocations: 0 / 0.5658 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007268/0.1433, allocations: 278 kB / 0.5661 GB, free: 10.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1434, allocations: 191.9 kB / 0.5663 GB, free: 10.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002469/0.1436, allocations: 238.6 kB / 0.5665 GB, free: 10.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.1437, allocations: 29.7 kB / 0.5666 GB, free: 10.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.1438, allocations: 220.4 kB / 0.5668 GB, free: 10.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1439, allocations: 122.9 kB / 0.5669 GB, free: 10.08 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.144, allocations: 78.09 kB / 0.567 GB, free: 9.996 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1442, allocations: 346.7 kB / 0.5673 GB, free: 9.648 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.1444, allocations: 76.84 kB / 0.5674 GB, free: 9.574 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003074/0.1447, allocations: 245.7 kB / 0.5676 GB, free: 9.258 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/0.1452, allocations: 361.1 kB / 0.5679 GB, free: 8.828 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.1452, allocations: 4 kB / 0.5679 GB, free: 8.824 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006606/0.1459, allocations: 381.5 kB / 0.5683 GB, free: 8.445 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.1459, allocations: 11.94 kB / 0.5683 GB, free: 8.434 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1459, allocations: 8 kB / 0.5683 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1459, allocations: 8 kB / 0.5683 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.1463, allocations: 111.8 kB / 0.5684 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.1463, allocations: 8 kB / 0.5684 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.1465, allocations: 43.73 kB / 0.5685 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.1465, allocations: 23.98 kB / 0.5685 GB, free: 8.234 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001652/0.1467, allocations: 157.6 kB / 0.5687 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.1469, allocations: 31.81 kB / 0.5687 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.147, allocations: 95.33 kB / 0.5688 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1471, allocations: 4 kB / 0.5688 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1471, allocations: 4 kB / 0.5688 GB, free: 7.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1471, allocations: 4.297 kB / 0.5688 GB, free: 7.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007199/0.1478, allocations: 349.3 kB / 0.5691 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.1478, allocations: 8 kB / 0.5691 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004204/0.1482, allocations: 83.89 kB / 0.5692 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.1482, allocations: 0 / 0.5692 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.1482, allocations: 8 kB / 0.5692 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.1482, allocations: 8.078 kB / 0.5692 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1483, allocations: 7.938 kB / 0.5692 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000796/0.149, allocations: 0.7588 MB / 0.57 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.204e-05/0.1491, allocations: 112.9 kB / 0.5701 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.1492, allocations: 8 kB / 0.5701 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.1495, allocations: 12 kB / 0.5701 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.1495, allocations: 19.91 kB / 0.5701 GB, free: 6.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.1496, allocations: 12 kB / 0.5701 GB, free: 6.461 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.1497, allocations: 166 kB / 0.5703 GB, free: 6.301 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1497, allocations: 0 / 0.5703 GB, free: 6.301 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.1504, allocations: 95.84 kB / 0.5704 GB, free: 6.207 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001163/0.1515, allocations: 1.315 MB / 0.5717 GB, free: 4.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005065/0.152, allocations: 227.6 kB / 0.5719 GB, free: 4.641 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.152, allocations: 1.25 kB / 0.5719 GB, free: 4.641 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.1522, allocations: 87.84 kB / 0.572 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.1531, allocations: 78.14 kB / 0.572 GB, free: 4.484 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005455/0.1586, allocations: 4.102 MB / 0.576 GB, free: 132 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.159, allocations: 0.7873 MB / 0.5768 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.1592, allocations: 38.95 kB / 0.5769 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.1594, allocations: 111.4 kB / 0.577 GB, free: 15.17 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1594, allocations: 0 / 0.577 GB, free: 15.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.1846, allocations: 6.492 MB / 0.5833 GB, free: 8.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.788/8.973, allocations: 14.97 kB / 0.5833 GB, free: 8.781 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.527040991000831]