Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBraking.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01004/0.01004, allocations: 165.4 kB / 15.13 MB, free: 6.035 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.982/1.982, allocations: 194.5 MB / 210.3 MB, free: 7.605 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001755/0.001755, allocations: 124.1 kB / 255.6 MB, free: 10.22 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3585/0.3585, allocations: 40.01 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004783, allocations: 17.66 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1017, allocations: 54.88 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002339/0.1041, allocations: 1.794 MB / 462.9 MB, free: 1.391 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1056, allocations: 0.6598 MB / 463.6 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001823/0.1058, allocations: 4 kB / 463.6 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.313e-05/0.1059, allocations: 27.77 kB / 463.6 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.1061, allocations: 67.45 kB / 463.7 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.1065, allocations: 71.86 kB / 463.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.1068, allocations: 230.9 kB / 464 MB, free: 340 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.107, allocations: 56.66 kB / 464 MB, free: 276 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.223e-05/0.1071, allocations: 79.64 kB / 464.1 MB, free: 196 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1072, allocations: 79.64 kB / 464.2 MB, free: 116 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.1073, allocations: 12 kB / 464.2 MB, free: 104 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.651e-05/0.1073, allocations: 8 kB / 464.2 MB, free: 96 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.1074, allocations: 39.83 kB / 464.3 MB, free: 56 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.706e-05/0.1075, allocations: 69.66 kB / 464.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.1077, allocations: 163.4 kB / 464.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1077, allocations: 0 / 464.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1078, allocations: 8 kB / 464.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.1078, allocations: 0 / 464.5 MB, free: 15.81 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000891/0.1087, allocations: 474.2 kB / 465 MB, free: 15.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1087, allocations: 8.031 kB / 465 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.101e-05/0.1088, allocations: 54.55 kB / 465 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.746e-05/0.1089, allocations: 27.66 kB / 465 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.1093, allocations: 231.2 kB / 465.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.1093, allocations: 20.44 kB / 465.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.756e-05/0.1094, allocations: 27.91 kB / 465.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.1099, allocations: 222.6 kB / 465.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.11, allocations: 4 kB / 465.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.11, allocations: 7.953 kB / 465.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.11, allocations: 8 kB / 465.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.1104, allocations: 123.9 kB / 465.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.1125, allocations: 1.033 MB / 466.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.1129, allocations: 154.4 kB / 466.9 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.1131, allocations: 59.44 kB / 466.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1131, allocations: 4 kB / 466.9 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1131, allocations: 34.56 kB / 467 MB, free: 13.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.475e-06/0.1131, allocations: 0 / 467 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005106/0.1137, allocations: 145.4 kB / 467.1 MB, free: 12.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1138, allocations: 132.6 kB / 467.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.1141, allocations: 187 kB / 467.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.1141, allocations: 33.7 kB / 467.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1143, allocations: 155.8 kB / 467.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.682e-05/0.1143, allocations: 63.14 kB / 467.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.1144, allocations: 8 kB / 467.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1145, allocations: 330.8 kB / 468 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1147, allocations: 43.92 kB / 468 MB, free: 11.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.1149, allocations: 142.6 kB / 468.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001904/0.1151, allocations: 75.92 kB / 468.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1151, allocations: 0 / 468.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005579/0.1157, allocations: 237 kB / 468.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.1157, allocations: 4 kB / 468.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1157, allocations: 4.438 kB / 468.5 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.1158, allocations: 12 kB / 468.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.1162, allocations: 60.09 kB / 468.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.1162, allocations: 8 kB / 468.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.1164, allocations: 23.8 kB / 468.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.1165, allocations: 16 kB / 468.6 MB, free: 11.32 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (31): * Single equations (assignments): 31 * 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.0001729/0.1166, allocations: 137.7 kB / 468.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1168, allocations: 27.69 kB / 468.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002195/0.117, allocations: 78.61 kB / 468.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.117, allocations: 4 kB / 468.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.117, allocations: 0 / 468.8 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.117, allocations: 4 kB / 468.8 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006735/0.1177, allocations: 257.4 kB / 469.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.1178, allocations: 0 / 469.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.1182, allocations: 47.91 kB / 469.1 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.1182, allocations: 4 kB / 469.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.1183, allocations: 8 kB / 469.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1183, allocations: 0 / 469.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1183, allocations: 0 / 469.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.1189, allocations: 489.4 kB / 469.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.942e-05/0.119, allocations: 104.8 kB / 469.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.119, allocations: 4 kB / 469.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.1193, allocations: 8 kB / 469.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.1194, allocations: 11.98 kB / 469.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.1194, allocations: 4 kB / 469.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001497/0.1196, allocations: 129.2 kB / 469.9 MB, free: 9.926 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1196, allocations: 0 / 469.9 MB, free: 9.926 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006211/0.1202, allocations: 51.91 kB / 469.9 MB, free: 9.875 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (15): * Single equations (assignments): 15 * 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.000852/0.1211, allocations: 1.023 MB / 471 MB, free: 8.824 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.1215, allocations: 129.7 kB / 471.1 MB, free: 8.699 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1215, allocations: 4.875 kB / 471.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.1216, allocations: 44.95 kB / 471.1 MB, free: 8.652 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009839/0.1226, allocations: 44.22 kB / 471.2 MB, free: 8.609 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.1262, allocations: 1.69 MB / 472.9 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.1267, allocations: 0.748 MB / 473.6 MB, free: 6.039 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.1269, allocations: 25.94 kB / 473.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.127, allocations: 63.41 kB / 473.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.1271, allocations: 0 / 473.7 MB, free: 5.953 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1518, allocations: 3.587 MB / 477.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002928/0.1522, allocations: 178.5 kB / 477.5 MB, free: 2.203 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.667/2.82, allocations: 0 / 477.5 MB, free: 2.203 MB / 314.7 MB "" Variables in the reference:time,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w Variables in the result:constantTorque.flange.phi,constantTorque.flange.tau,constantTorque.phi,constantTorque.phi_support,constantTorque.tau,constantTorque.tau_constant,constantTorque.useSupport,constantTorque.w,der(constantTorque.phi),der(inertia1.w),der(inertia2.w),der(inertia3.w),der(inertia4.w),der(linearSpeedDependentTorque.phi),der(quadraticSpeedDependentTorque.phi),der(signTorque.phi),inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,inertia4.J,inertia4.a,inertia4.flange_a.phi,inertia4.flange_a.tau,inertia4.flange_b.phi,inertia4.flange_b.tau,inertia4.phi,inertia4.stateSelect,inertia4.w,linearSpeedDependentTorque.TorqueDirection,linearSpeedDependentTorque.flange.phi,linearSpeedDependentTorque.flange.tau,linearSpeedDependentTorque.phi,linearSpeedDependentTorque.phi_support,linearSpeedDependentTorque.tau,linearSpeedDependentTorque.tau_nominal,linearSpeedDependentTorque.useSupport,linearSpeedDependentTorque.w,linearSpeedDependentTorque.w_nominal,quadraticSpeedDependentTorque.TorqueDirection,quadraticSpeedDependentTorque.flange.phi,quadraticSpeedDependentTorque.flange.tau,quadraticSpeedDependentTorque.phi,quadraticSpeedDependentTorque.phi_support,quadraticSpeedDependentTorque.tau,quadraticSpeedDependentTorque.tau_nominal,quadraticSpeedDependentTorque.useSupport,quadraticSpeedDependentTorque.w,quadraticSpeedDependentTorque.w_nominal,signTorque.flange.phi,signTorque.flange.tau,signTorque.phi,signTorque.phi_support,signTorque.reg,signTorque.tau,signTorque.tau_constant,signTorque.useSupport,signTorque.w,signTorque.w0,time