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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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",fileNamePrefix="ModelicaTest_3.2.3_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",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 183.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.2 MB / 218.9 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008627/0.0008628, allocations: 86.61 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3511/0.3511, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.014e-05, allocations: 0 / 425.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1187, allocations: 58.84 MB / 484.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3835/0.5022, allocations: 89.52 MB / 0.5602 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.5025, allocations: 63.2 kB / 0.5603 GB, free: 14.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01513/0.5176, allocations: 6.105 MB / 0.5662 GB, free: 11.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5177, allocations: 0 / 0.5662 GB, free: 11.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.5177, allocations: 8.547 kB / 0.5663 GB, free: 11.01 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0005857/0.5183, allocations: 0.5218 MB / 0.5668 GB, free: 10.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.5183, allocations: 15.31 kB / 0.5668 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.5186, allocations: 54.86 kB / 0.5668 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.5188, allocations: 264.6 kB / 0.5671 GB, free: 10.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.5188, allocations: 20.28 kB / 0.5671 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.5189, allocations: 31.69 kB / 0.5671 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.5192, allocations: 288.5 kB / 0.5674 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.5192, allocations: 7.844 kB / 0.5674 GB, free: 9.863 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.5193, allocations: 11.69 kB / 0.5674 GB, free: 9.859 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.5193, allocations: 13.38 kB / 0.5674 GB, free: 9.848 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.5195, allocations: 167.6 kB / 0.5676 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.5209, allocations: 1.34 MB / 0.5689 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.5212, allocations: 247.9 kB / 0.5691 GB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.618e-05/0.5212, allocations: 75.92 kB / 0.5692 GB, free: 8.141 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.5213, allocations: 8.031 kB / 0.5692 GB, free: 8.133 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.269e-05/0.5213, allocations: 34.25 kB / 0.5693 GB, free: 8.094 MB / 394.7 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.5213, allocations: 0 / 0.5693 GB, free: 8.094 MB / 394.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003141/0.5216, allocations: 179.9 kB / 0.5694 GB, free: 7.941 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.5217, allocations: 166.2 kB / 0.5696 GB, free: 7.742 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.5218, allocations: 182.3 kB / 0.5698 GB, free: 7.578 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.5218, allocations: 29.45 kB / 0.5698 GB, free: 7.547 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.5219, allocations: 190.4 kB / 0.57 GB, free: 7.383 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.168e-05/0.5219, allocations: 98.05 kB / 0.5701 GB, free: 7.301 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-06/0.5219, allocations: 3.938 kB / 0.5701 GB, free: 7.301 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.522, allocations: 338.3 kB / 0.5704 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.5221, allocations: 60.56 kB / 0.5704 GB, free: 6.934 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.5222, allocations: 204.8 kB / 0.5706 GB, free: 6.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.5224, allocations: 95.28 kB / 0.5707 GB, free: 6.633 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5224, allocations: 0 / 0.5707 GB, free: 6.633 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003427/0.5227, allocations: 309.2 kB / 0.571 GB, free: 6.387 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.5227, allocations: 4.219 kB / 0.571 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.5227, allocations: 8.531 kB / 0.571 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5228, allocations: 11.94 kB / 0.571 GB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.523, allocations: 95.14 kB / 0.5711 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.523, allocations: 7.953 kB / 0.5711 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.5232, allocations: 30.94 kB / 0.5712 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.5232, allocations: 19.19 kB / 0.5712 GB, free: 6.223 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/0.5233, allocations: 130.8 kB / 0.5713 GB, free: 6.098 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/0.5234, allocations: 23.72 kB / 0.5713 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.5235, allocations: 89.67 kB / 0.5714 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.5235, allocations: 11.94 kB / 0.5714 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5235, allocations: 4 kB / 0.5714 GB, free: 5.996 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.5235, allocations: 3.953 kB / 0.5714 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.524, allocations: 311.5 kB / 0.5717 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.524, allocations: 0 / 0.5717 GB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.5243, allocations: 67.22 kB / 0.5718 GB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.5243, allocations: 4 kB / 0.5718 GB, free: 5.617 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.5243, allocations: 7.938 kB / 0.5718 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.5243, allocations: 0 / 0.5718 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5243, allocations: 4 kB / 0.5718 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.5247, allocations: 0.6759 MB / 0.5725 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.114e-05/0.5248, allocations: 100.9 kB / 0.5726 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.048e-05/0.5248, allocations: 7.375 kB / 0.5726 GB, free: 4.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.5251, allocations: 7.25 kB / 0.5726 GB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.5251, allocations: 19.53 kB / 0.5726 GB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.5251, allocations: 4 kB / 0.5726 GB, free: 4.805 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.033e-05/0.5252, allocations: 150.2 kB / 0.5728 GB, free: 4.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5252, allocations: 3.938 kB / 0.5728 GB, free: 4.676 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004366/0.5257, allocations: 83 kB / 0.5728 GB, free: 4.602 MB / 394.7 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 () * 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 (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.0001019/0.5258, allocations: 105.3 kB / 0.5729 GB, free: 4.492 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002525/0.526, allocations: 182.4 kB / 0.5731 GB, free: 4.355 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.526, allocations: 1.062 kB / 0.5731 GB, free: 4.355 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.81e-05/0.5261, allocations: 77.84 kB / 0.5732 GB, free: 4.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004758/0.5266, allocations: 55.03 kB / 0.5732 GB, free: 4.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.5277, allocations: 1.026 MB / 0.5742 GB, free: 3.238 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.5279, allocations: 0.7797 MB / 0.575 GB, free: 2.434 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.528, allocations: 34.97 kB / 0.575 GB, free: 2.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.5281, allocations: 19.44 kB / 0.5751 GB, free: 2.379 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5281, allocations: 0 / 0.5751 GB, free: 2.379 MB / 394.7 MB Notification: Performance of Templates: time 0.004199/0.5323, allocations: 2.292 MB / 0.5773 GB, free: 128 kB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches