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.001345/0.001345, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.001514/0.001514, allocations: 212.6 kB / 23.74 MB, free: 4.672 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.513/1.513, allocations: 230.5 MB / 257.4 MB, free: 8 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.2483/0.2483, allocations: 46.93 MB / 360.8 MB, free: 4.168 MB / 286.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 83.86 kB / 0.4962 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3392, allocations: 66.09 MB / 0.5607 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004882/0.3441, allocations: 3.058 MB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.3465, allocations: 1.079 MB / 0.5648 GB, free: 128 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003744/0.3469, allocations: 15.94 kB / 0.5648 GB, free: 112 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.3471, allocations: 63.31 kB / 0.5648 GB, free: 48 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003973/0.3475, allocations: 123.1 kB / 0.5649 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00069/0.3482, allocations: 175.5 kB / 0.5651 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006867/0.3489, allocations: 465.7 kB / 0.5656 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.3491, allocations: 77.83 kB / 0.5656 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.3495, allocations: 167.4 kB / 0.5658 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000302/0.3498, allocations: 175.2 kB / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.646e-05/0.3498, allocations: 28 kB / 0.566 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.35, allocations: 55.98 kB / 0.566 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.508e-05/0.3501, allocations: 75.69 kB / 0.5661 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.3503, allocations: 195 kB / 0.5663 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.3508, allocations: 442.2 kB / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3508, allocations: 0 / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3508, allocations: 0 / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3509, allocations: 4 kB / 0.5667 GB, free: 14.09 MB / 414.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.001188/0.352, allocations: 0.5949 MB / 0.5673 GB, free: 13.47 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3521, allocations: 11.97 kB / 0.5673 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.487e-05/0.3522, allocations: 70.72 kB / 0.5674 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000364/0.3526, allocations: 76.62 kB / 0.5675 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.3531, allocations: 229.7 kB / 0.5677 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/0.3531, allocations: 25.38 kB / 0.5677 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-05/0.3532, allocations: 44.08 kB / 0.5677 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000711/0.3539, allocations: 363.6 kB / 0.5681 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.175e-05/0.354, allocations: 8 kB / 0.5681 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.354, allocations: 12 kB / 0.5681 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.354, allocations: 8 kB / 0.5681 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.3545, allocations: 222.7 kB / 0.5683 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.3571, allocations: 1.526 MB / 0.5698 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.3577, allocations: 299.6 kB / 0.5701 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3579, allocations: 93.12 kB / 0.5702 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3579, allocations: 4 kB / 0.5702 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.358, allocations: 46.5 kB / 0.5702 GB, free: 10.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.314e-06/0.358, allocations: 0 / 0.5702 GB, free: 10.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007235/0.3587, allocations: 270.1 kB / 0.5705 GB, free: 9.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.3588, allocations: 187.9 kB / 0.5707 GB, free: 9.723 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.3591, allocations: 238 kB / 0.5709 GB, free: 9.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.3591, allocations: 33.7 kB / 0.5709 GB, free: 9.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.3593, allocations: 216.2 kB / 0.5711 GB, free: 9.227 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.3594, allocations: 119 kB / 0.5713 GB, free: 9.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.3595, allocations: 74.09 kB / 0.5713 GB, free: 9.027 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3597, allocations: 342.7 kB / 0.5717 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.3599, allocations: 76.84 kB / 0.5717 GB, free: 8.609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.3602, allocations: 259 kB / 0.572 GB, free: 8.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.3608, allocations: 357.1 kB / 0.5723 GB, free: 7.859 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.3608, allocations: 4 kB / 0.5723 GB, free: 7.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007392/0.3616, allocations: 381.4 kB / 0.5727 GB, free: 7.477 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.3616, allocations: 8 kB / 0.5727 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3616, allocations: 8 kB / 0.5727 GB, free: 7.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.982e-05/0.3616, allocations: 11.98 kB / 0.5727 GB, free: 7.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.362, allocations: 103.8 kB / 0.5728 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-05/0.362, allocations: 15.88 kB / 0.5728 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.3623, allocations: 43.83 kB / 0.5729 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.3623, allocations: 23.98 kB / 0.5729 GB, free: 7.266 MB / 414.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.0001839/0.3625, allocations: 161.7 kB / 0.573 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.3626, allocations: 39.8 kB / 0.5731 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.3628, allocations: 83.39 kB / 0.5732 GB, free: 6.969 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.3628, allocations: 4 kB / 0.5732 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3628, allocations: 4 kB / 0.5732 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3629, allocations: 3.984 kB / 0.5732 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007352/0.3636, allocations: 320.4 kB / 0.5735 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3636, allocations: 0 / 0.5735 GB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004222/0.364, allocations: 83.89 kB / 0.5736 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.364, allocations: 4 kB / 0.5736 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.3641, allocations: 15.98 kB / 0.5736 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3641, allocations: 320 / 0.5736 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3641, allocations: 4 kB / 0.5736 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008717/0.3649, allocations: 0.7741 MB / 0.5743 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.365, allocations: 27.8 kB / 0.5744 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.365, allocations: 8 kB / 0.5744 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.3654, allocations: 8 kB / 0.5744 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.3654, allocations: 24.05 kB / 0.5744 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.3655, allocations: 15.88 kB / 0.5744 GB, free: 5.617 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001737/0.3656, allocations: 169.2 kB / 0.5746 GB, free: 5.449 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3656, allocations: 4 kB / 0.5746 GB, free: 5.445 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006623/0.3663, allocations: 99.78 kB / 0.5747 GB, free: 5.348 MB / 414.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.001222/0.3675, allocations: 1.307 MB / 0.576 GB, free: 4.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005636/0.3681, allocations: 220.5 kB / 0.5762 GB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.3681, allocations: 4.375 kB / 0.5762 GB, free: 3.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.3683, allocations: 91.83 kB / 0.5763 GB, free: 3.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009984/0.3693, allocations: 84.98 kB / 0.5763 GB, free: 3.629 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00602/0.3753, allocations: 4.089 MB / 0.5803 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.3758, allocations: 0.7989 MB / 0.5811 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.376, allocations: 30.97 kB / 0.5811 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.3762, allocations: 107.4 kB / 0.5812 GB, free: 14.33 MB / 430.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3762, allocations: 4 kB / 0.5812 GB, free: 14.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0428/0.419, allocations: 6.794 MB / 0.5879 GB, free: 7.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.98, allocations: 2.656 kB / 0.5879 GB, free: 7.664 MB / 430.1 MB " [Timeout remaining time 648] (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: 15.113466249080375]