Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2298/0.2298, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 79.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3317, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004446/0.3362, allocations: 3.041 MB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3383, allocations: 1.073 MB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.3385, allocations: 10.81 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.3388, allocations: 56.89 kB / 0.5347 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.339, allocations: 120.6 kB / 0.5348 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000519/0.3395, allocations: 171.2 kB / 0.5349 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.34, allocations: 458 kB / 0.5354 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.3403, allocations: 120.6 kB / 0.5355 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.3405, allocations: 158.9 kB / 0.5356 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.3407, allocations: 180.8 kB / 0.5358 GB, free: 9.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.3408, allocations: 33.98 kB / 0.5359 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3409, allocations: 50.89 kB / 0.5359 GB, free: 9.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.059e-05/0.341, allocations: 75.14 kB / 0.536 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.3413, allocations: 196.3 kB / 0.5362 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005704/0.3418, allocations: 437.8 kB / 0.5366 GB, free: 8.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3418, allocations: 0 / 0.5366 GB, free: 8.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3419, allocations: 0 / 0.5366 GB, free: 8.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3419, allocations: 0 / 0.5366 GB, free: 8.734 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001086/0.343, allocations: 0.6693 MB / 0.5372 GB, free: 8.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.343, allocations: 13.11 kB / 0.5372 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.339e-05/0.3431, allocations: 74.41 kB / 0.5373 GB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002831/0.3434, allocations: 64.42 kB / 0.5374 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.3438, allocations: 298 kB / 0.5377 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/0.3439, allocations: 31.5 kB / 0.5377 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.731e-05/0.344, allocations: 47.75 kB / 0.5377 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.3446, allocations: 356.2 kB / 0.5381 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.3446, allocations: 10.44 kB / 0.5381 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.3447, allocations: 11.22 kB / 0.5381 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.3447, allocations: 14 kB / 0.5381 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.3452, allocations: 223.9 kB / 0.5383 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.3475, allocations: 1.576 MB / 0.5399 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.3481, allocations: 307.6 kB / 0.5402 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.3483, allocations: 93.27 kB / 0.5402 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3483, allocations: 10.98 kB / 0.5403 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.3484, allocations: 44.92 kB / 0.5403 GB, free: 5.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.074e-06/0.3484, allocations: 1.125 kB / 0.5403 GB, free: 5.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006693/0.349, allocations: 266.7 kB / 0.5406 GB, free: 5.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.3492, allocations: 191.1 kB / 0.5407 GB, free: 5.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.3494, allocations: 237.3 kB / 0.541 GB, free: 5.023 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.3494, allocations: 30.83 kB / 0.541 GB, free: 4.988 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3496, allocations: 219.6 kB / 0.5412 GB, free: 4.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.578e-05/0.3497, allocations: 119.4 kB / 0.5413 GB, free: 4.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.3498, allocations: 78.27 kB / 0.5414 GB, free: 4.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.35, allocations: 341.5 kB / 0.5417 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.3502, allocations: 81.27 kB / 0.5418 GB, free: 4.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003529/0.3505, allocations: 251.4 kB / 0.542 GB, free: 3.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.3511, allocations: 366.8 kB / 0.5424 GB, free: 3.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3511, allocations: 2.781 kB / 0.5424 GB, free: 3.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006481/0.3517, allocations: 382.8 kB / 0.5428 GB, free: 3.469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3518, allocations: 7.438 kB / 0.5428 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.3518, allocations: 6.625 kB / 0.5428 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3518, allocations: 11.22 kB / 0.5428 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.3522, allocations: 106.9 kB / 0.5429 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/0.3522, allocations: 15.52 kB / 0.5429 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.3524, allocations: 41.83 kB / 0.5429 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.3525, allocations: 19.94 kB / 0.5429 GB, free: 3.402 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000172/0.3526, allocations: 162.7 kB / 0.5431 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3528, allocations: 31.06 kB / 0.5431 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.353, allocations: 101.7 kB / 0.5432 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.353, allocations: 8.656 kB / 0.5432 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.353, allocations: 1.094 kB / 0.5432 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.353, allocations: 2.75 kB / 0.5432 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000689/0.3537, allocations: 352.8 kB / 0.5436 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3537, allocations: 2.281 kB / 0.5436 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003855/0.3541, allocations: 80.05 kB / 0.5437 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.3541, allocations: 2.438 kB / 0.5437 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.3541, allocations: 11.47 kB / 0.5437 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3542, allocations: 3.375 kB / 0.5437 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.3542, allocations: 5.094 kB / 0.5437 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008023/0.355, allocations: 0.7701 MB / 0.5444 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.006e-05/0.3551, allocations: 106 kB / 0.5445 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/0.3551, allocations: 15.58 kB / 0.5445 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.3554, allocations: 8.562 kB / 0.5446 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/0.3555, allocations: 21.28 kB / 0.5446 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.3555, allocations: 15.16 kB / 0.5446 GB, free: 2.008 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.3557, allocations: 166.9 kB / 0.5448 GB, free: 1.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3557, allocations: 1.219 kB / 0.5448 GB, free: 1.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005996/0.3563, allocations: 97.72 kB / 0.5448 GB, free: 1.867 MB / 398.1 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,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.001117/0.3574, allocations: 1.301 MB / 0.5461 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004644/0.3579, allocations: 231.5 kB / 0.5463 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3579, allocations: 1.25 kB / 0.5463 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.3581, allocations: 97.23 kB / 0.5464 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009248/0.359, allocations: 89.73 kB / 0.5465 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005399/0.3644, allocations: 4.09 MB / 0.5505 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005769/0.3651, allocations: 0.795 MB / 0.5513 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.3653, allocations: 30.97 kB / 0.5513 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.3654, allocations: 111.4 kB / 0.5514 GB, free: 11.4 MB / 414.1 MB Notification: Performance of SimCode: time 2.726e-06/0.3654, allocations: 0 / 0.5514 GB, free: 11.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.3937, allocations: 6.402 MB / 0.5577 GB, free: 5.125 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.784/9.178, allocations: 25.89 kB / 0.5577 GB, free: 5.105 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1)