Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 194.3 kB / 16.78 MB, free: 4.887 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 244.1 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007138/0.0007139, allocations: 94.77 kB / 296.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2942/0.2942, allocations: 44.82 MB / 392.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002439/0.0002439, allocations: 4 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2958, allocations: 62.95 MB / 0.5165 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.4074, allocations: 92.12 MB / 0.6064 GB, free: 13.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.4077, allocations: 63.97 kB / 0.6065 GB, free: 13.19 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02073/0.4284, allocations: 7.861 MB / 0.6142 GB, free: 5.316 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4284, allocations: 3.938 kB / 0.6142 GB, free: 5.312 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.4285, allocations: 8 kB / 0.6142 GB, free: 5.305 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0009183/0.4294, allocations: 0.5892 MB / 0.6147 GB, free: 4.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4295, allocations: 8.031 kB / 0.6148 GB, free: 4.652 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000296/0.4298, allocations: 64.44 kB / 0.6148 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.4301, allocations: 284.6 kB / 0.6151 GB, free: 4.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.4302, allocations: 21.38 kB / 0.6151 GB, free: 4.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.4302, allocations: 48.28 kB / 0.6151 GB, free: 4.203 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.4308, allocations: 356.3 kB / 0.6155 GB, free: 3.828 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.4309, allocations: 15.84 kB / 0.6155 GB, free: 3.812 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.4309, allocations: 12 kB / 0.6155 GB, free: 3.801 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.4309, allocations: 15.98 kB / 0.6155 GB, free: 3.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004253/0.4314, allocations: 215.8 kB / 0.6157 GB, free: 3.574 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.4336, allocations: 1.576 MB / 0.6173 GB, free: 1.887 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.4341, allocations: 316.1 kB / 0.6176 GB, free: 1.523 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.4343, allocations: 105.1 kB / 0.6177 GB, free: 1.402 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.4343, allocations: 8 kB / 0.6177 GB, free: 1.395 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.4344, allocations: 34.56 kB / 0.6177 GB, free: 1.352 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.724e-06/0.4344, allocations: 0 / 0.6177 GB, free: 1.352 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006606/0.435, allocations: 277.2 kB / 0.618 GB, free: 1.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.4352, allocations: 187.9 kB / 0.6182 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.4354, allocations: 242.4 kB / 0.6184 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.4355, allocations: 29.7 kB / 0.6184 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.4356, allocations: 211.9 kB / 0.6186 GB, free: 364 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.297e-05/0.4357, allocations: 110.4 kB / 0.6187 GB, free: 252 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.479e-05/0.4357, allocations: 8 kB / 0.6187 GB, free: 244 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4359, allocations: 342.7 kB / 0.6191 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.4361, allocations: 80.84 kB / 0.6191 GB, free: 15.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.4364, allocations: 249.8 kB / 0.6194 GB, free: 15.49 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.4369, allocations: 361.1 kB / 0.6197 GB, free: 15.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4369, allocations: 4 kB / 0.6197 GB, free: 15.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006134/0.4375, allocations: 389.1 kB / 0.6201 GB, free: 14.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4375, allocations: 8 kB / 0.6201 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.4375, allocations: 4 kB / 0.6201 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.4376, allocations: 8 kB / 0.6201 GB, free: 14.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.4379, allocations: 103.8 kB / 0.6202 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.4379, allocations: 8 kB / 0.6202 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.4382, allocations: 47.58 kB / 0.6203 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.4382, allocations: 20.22 kB / 0.6203 GB, free: 14.48 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001521/0.4383, allocations: 165.6 kB / 0.6204 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.4385, allocations: 27.72 kB / 0.6205 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.4386, allocations: 91.31 kB / 0.6206 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.4387, allocations: 4 kB / 0.6206 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4387, allocations: 4 kB / 0.6206 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4387, allocations: 0 / 0.6206 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006354/0.4393, allocations: 349.6 kB / 0.6209 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4393, allocations: 0 / 0.6209 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003906/0.4397, allocations: 95.83 kB / 0.621 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4398, allocations: 4 kB / 0.621 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.4398, allocations: 11.98 kB / 0.621 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.4398, allocations: 4 kB / 0.621 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4398, allocations: 0 / 0.621 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000713/0.4405, allocations: 0.7775 MB / 0.6218 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.752e-05/0.4406, allocations: 104.8 kB / 0.6219 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.4407, allocations: 8 kB / 0.6219 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.441, allocations: 7.984 kB / 0.6219 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.441, allocations: 27.92 kB / 0.6219 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.4411, allocations: 15.98 kB / 0.6219 GB, free: 12.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.4412, allocations: 158 kB / 0.6221 GB, free: 12.54 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4412, allocations: 0 / 0.6221 GB, free: 12.54 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005617/0.4418, allocations: 103.7 kB / 0.6222 GB, free: 12.44 MB / 442.7 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,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T,inertia6.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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001424/0.4419, allocations: 110.5 kB / 0.6223 GB, free: 12.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004315/0.4424, allocations: 231.6 kB / 0.6225 GB, free: 12.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4424, allocations: 1.25 kB / 0.6225 GB, free: 12.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.4425, allocations: 99.83 kB / 0.6226 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.4434, allocations: 76.05 kB / 0.6227 GB, free: 11.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.4455, allocations: 1.619 MB / 0.6243 GB, free: 10.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.4459, allocations: 0.7991 MB / 0.625 GB, free: 9.438 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.906e-05/0.446, allocations: 27.44 kB / 0.6251 GB, free: 9.41 MB / 442.7 MB Notification: Performance of SimCode: time 2.2e-07/0.446, allocations: 0 / 0.6251 GB, free: 9.41 MB / 442.7 MB Notification: Performance of Templates: time 0.006019/0.452, allocations: 3.948 MB / 0.6289 GB, free: 5.477 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches