Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001279, allocations: 113.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001281, allocations: 185 kB / 18.72 MB, free: 4.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2367/0.2367, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3764, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003645/0.3801, allocations: 2.697 MB / 0.521 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.3818, allocations: 0.9463 MB / 0.522 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.382, allocations: 10.41 kB / 0.522 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.3822, allocations: 56.48 kB / 0.522 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.3823, allocations: 97.89 kB / 0.5221 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004601/0.3828, allocations: 141.3 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004027/0.3832, allocations: 376.6 kB / 0.5226 GB, free: 328 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.3834, allocations: 96.58 kB / 0.5227 GB, free: 276 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.3836, allocations: 127.5 kB / 0.5228 GB, free: 220 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.3838, allocations: 144.6 kB / 0.523 GB, free: 148 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.3839, allocations: 24.22 kB / 0.523 GB, free: 148 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.384, allocations: 43.45 kB / 0.523 GB, free: 144 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.269e-05/0.3841, allocations: 61.7 kB / 0.5231 GB, free: 100 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.3842, allocations: 159.8 kB / 0.5232 GB, free: 8 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005974/0.3848, allocations: 369.5 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3849, allocations: 4.75 kB / 0.5236 GB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3849, allocations: 5.125 kB / 0.5236 GB, free: 15.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.3849, allocations: 0 / 0.5236 GB, free: 15.85 MB / 398.1 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.001113/0.386, allocations: 0.5957 MB / 0.5242 GB, free: 15.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.3861, allocations: 10.28 kB / 0.5242 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.459e-05/0.3862, allocations: 67.36 kB / 0.5243 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.3864, allocations: 52.59 kB / 0.5243 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004522/0.3868, allocations: 276.2 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.3869, allocations: 20.34 kB / 0.5246 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.357e-05/0.3869, allocations: 37.3 kB / 0.5246 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.3875, allocations: 304.5 kB / 0.5249 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.3875, allocations: 6.906 kB / 0.5249 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.3875, allocations: 11.53 kB / 0.5249 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3876, allocations: 7.188 kB / 0.5249 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.3879, allocations: 177.1 kB / 0.5251 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.39, allocations: 1.326 MB / 0.5264 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004525/0.3905, allocations: 257.5 kB / 0.5267 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.3906, allocations: 84.03 kB / 0.5267 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.3906, allocations: 8.406 kB / 0.5267 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.3907, allocations: 37.59 kB / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.3907, allocations: 0 / 0.5268 GB, free: 13.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005437/0.3912, allocations: 219.5 kB / 0.527 GB, free: 13.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.3913, allocations: 166.7 kB / 0.5271 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.3916, allocations: 215.4 kB / 0.5274 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.3916, allocations: 31.14 kB / 0.5274 GB, free: 12.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.3918, allocations: 190.4 kB / 0.5276 GB, free: 12.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-05/0.3919, allocations: 91.33 kB / 0.5277 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.392, allocations: 69.52 kB / 0.5277 GB, free: 12.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3922, allocations: 333.7 kB / 0.528 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.3923, allocations: 65.52 kB / 0.5281 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.3926, allocations: 208.1 kB / 0.5283 GB, free: 12.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.393, allocations: 301.7 kB / 0.5286 GB, free: 11.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.393, allocations: 1.375 kB / 0.5286 GB, free: 11.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005153/0.3935, allocations: 320.6 kB / 0.5289 GB, free: 11.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3935, allocations: 10.81 kB / 0.5289 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3936, allocations: 4.125 kB / 0.5289 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3936, allocations: 6.875 kB / 0.5289 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.3939, allocations: 92.95 kB / 0.529 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.3939, allocations: 6.594 kB / 0.529 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.3941, allocations: 35.02 kB / 0.529 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.3941, allocations: 17.19 kB / 0.5291 GB, free: 11.64 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.3943, allocations: 160.3 kB / 0.5292 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3944, allocations: 28.22 kB / 0.5292 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.3946, allocations: 83.23 kB / 0.5293 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3946, allocations: 3.719 kB / 0.5293 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3946, allocations: 2.75 kB / 0.5293 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3946, allocations: 0 / 0.5293 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006368/0.3953, allocations: 312.5 kB / 0.5296 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3953, allocations: 5.531 kB / 0.5296 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.3956, allocations: 77.39 kB / 0.5297 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.3956, allocations: 2.281 kB / 0.5297 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3957, allocations: 8.062 kB / 0.5297 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3957, allocations: 1.312 kB / 0.5297 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3957, allocations: 1.344 kB / 0.5297 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006211/0.3963, allocations: 0.6385 MB / 0.5303 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.137e-05/0.3964, allocations: 99.78 kB / 0.5304 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.3964, allocations: 8.594 kB / 0.5304 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.3967, allocations: 5.625 kB / 0.5304 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.3967, allocations: 16.16 kB / 0.5305 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.3968, allocations: 9.688 kB / 0.5305 GB, free: 10.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.3969, allocations: 150.5 kB / 0.5306 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3969, allocations: 0 / 0.5306 GB, free: 10.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005801/0.3975, allocations: 86.86 kB / 0.5307 GB, free: 10.27 MB / 398.1 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 () * Number of clocked 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 (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.0009249/0.3984, allocations: 1.175 MB / 0.5318 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.3989, allocations: 192.8 kB / 0.532 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3989, allocations: 0 / 0.532 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.399, allocations: 82.27 kB / 0.5321 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008118/0.3998, allocations: 58.98 kB / 0.5322 GB, free: 9.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004568/0.4044, allocations: 3.549 MB / 0.5356 GB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.4049, allocations: 0.7686 MB / 0.5364 GB, free: 5.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.405, allocations: 32.98 kB / 0.5364 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.4052, allocations: 89.78 kB / 0.5365 GB, free: 5.207 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4052, allocations: 4 kB / 0.5365 GB, free: 5.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03052/0.4357, allocations: 5.364 MB / 0.5417 GB, free: 2.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.41/8.846, allocations: 1.062 kB / 0.5417 GB, free: 2.508 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches