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/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_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_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008546/0.0008546, allocations: 98.67 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2069/0.2069, allocations: 45.14 MB / 383.7 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.933e-05/1.958e-05, allocations: 2.656 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1458, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4487/0.5945, allocations: 91.62 MB / 0.5938 GB, free: 11.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.5948, allocations: 66.19 kB / 0.5939 GB, free: 11.01 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02067/0.6155, allocations: 7.87 MB / 0.6016 GB, free: 4.574 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6156, allocations: 0 / 0.6016 GB, free: 4.574 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.6156, allocations: 12 kB / 0.6016 GB, free: 4.562 MB / 394.7 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.0008211/0.6164, allocations: 0.5616 MB / 0.6021 GB, free: 3.973 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.6165, allocations: 12.03 kB / 0.6021 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.6168, allocations: 67.5 kB / 0.6022 GB, free: 3.895 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.6171, allocations: 275.8 kB / 0.6025 GB, free: 3.605 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.6171, allocations: 12 kB / 0.6025 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.6172, allocations: 31.47 kB / 0.6025 GB, free: 3.566 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003551/0.6176, allocations: 173.1 kB / 0.6027 GB, free: 3.453 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000469/0.618, allocations: 299 kB / 0.603 GB, free: 3.203 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.6181, allocations: 7.906 kB / 0.603 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.6181, allocations: 4 kB / 0.603 GB, free: 3.191 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.6181, allocations: 8 kB / 0.603 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.6201, allocations: 1.526 MB / 0.6045 GB, free: 1.738 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.6205, allocations: 263.8 kB / 0.6047 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.6206, allocations: 85.67 kB / 0.6048 GB, free: 1.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.6206, allocations: 11.98 kB / 0.6048 GB, free: 1.383 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.6207, allocations: 42.59 kB / 0.6049 GB, free: 1.336 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.432e-06/0.6207, allocations: 3.938 kB / 0.6049 GB, free: 1.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004201/0.6211, allocations: 178.9 kB / 0.605 GB, free: 1.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.986e-05/0.6212, allocations: 188 kB / 0.6052 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.6214, allocations: 197.2 kB / 0.6054 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.6214, allocations: 25.7 kB / 0.6054 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.6216, allocations: 215.9 kB / 0.6056 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.6216, allocations: 104.7 kB / 0.6057 GB, free: 492 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.6216, allocations: 0 / 0.6057 GB, free: 492 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.6218, allocations: 333.4 kB / 0.606 GB, free: 160 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.6219, allocations: 68.94 kB / 0.6061 GB, free: 120 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.6221, allocations: 233.4 kB / 0.6063 GB, free: 15.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.6222, allocations: 98.34 kB / 0.6064 GB, free: 15.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.6223, allocations: 0 / 0.6064 GB, free: 15.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000445/0.6227, allocations: 334.1 kB / 0.6068 GB, free: 15.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.6227, allocations: 8.625 kB / 0.6068 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.6228, allocations: 8 kB / 0.6068 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.6228, allocations: 8 kB / 0.6068 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.6232, allocations: 111.1 kB / 0.6069 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.6232, allocations: 8 kB / 0.6069 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.6234, allocations: 39.61 kB / 0.6069 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.6235, allocations: 19.38 kB / 0.6069 GB, free: 15.32 MB / 410.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 () * 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.0001245/0.6236, allocations: 116.8 kB / 0.6071 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.6238, allocations: 27.67 kB / 0.6071 GB, free: 15.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001842/0.624, allocations: 89.52 kB / 0.6072 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.624, allocations: 4 kB / 0.6072 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.624, allocations: 4 kB / 0.6072 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.624, allocations: 3.984 kB / 0.6072 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005905/0.6246, allocations: 291.6 kB / 0.6075 GB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.6246, allocations: 0 / 0.6075 GB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004027/0.625, allocations: 83.39 kB / 0.6075 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.625, allocations: 4 kB / 0.6075 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.6251, allocations: 7.984 kB / 0.6075 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.6251, allocations: 11.95 kB / 0.6076 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6251, allocations: 0 / 0.6076 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007409/0.6258, allocations: 0.7802 MB / 0.6083 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.6259, allocations: 100.8 kB / 0.6084 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.421e-05/0.626, allocations: 11.92 kB / 0.6084 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.6263, allocations: 4.312 kB / 0.6084 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.6264, allocations: 31.17 kB / 0.6085 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.6264, allocations: 10.62 kB / 0.6085 GB, free: 13.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001199/0.6265, allocations: 145.4 kB / 0.6086 GB, free: 13.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6265, allocations: 4 kB / 0.6086 GB, free: 13.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005665/0.6271, allocations: 87.69 kB / 0.6087 GB, free: 13.57 MB / 410.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 () * 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.0001607/0.6273, allocations: 106.5 kB / 0.6088 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003132/0.6276, allocations: 204.7 kB / 0.609 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6276, allocations: 0 / 0.609 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.6277, allocations: 83.8 kB / 0.6091 GB, free: 13.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/0.6283, allocations: 59.23 kB / 0.6091 GB, free: 13.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.6303, allocations: 1.181 MB / 0.6103 GB, free: 12.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.6307, allocations: 0.7993 MB / 0.6111 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.6309, allocations: 39.27 kB / 0.6111 GB, free: 11.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.796e-05/0.631, allocations: 27.42 kB / 0.6111 GB, free: 11.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.631, allocations: 0 / 0.6111 GB, free: 11.12 MB / 410.7 MB Notification: Performance of Templates: time 0.006382/0.6374, allocations: 2.619 MB / 0.6137 GB, free: 8.539 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches