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: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001618, allocations: 201.2 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.48/1.48, 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.2392/0.2392, allocations: 46.12 MB / 344.3 MB, free: 11.46 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.003317/0.003317, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3657, allocations: 62.43 MB / 0.5306 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00453/0.3703, allocations: 3.044 MB / 0.5335 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.3725, allocations: 1.068 MB / 0.5346 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.3728, allocations: 6.875 kB / 0.5346 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.3731, allocations: 66.19 kB / 0.5347 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.3733, allocations: 112.7 kB / 0.5348 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.374, allocations: 177.8 kB / 0.5349 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.3746, allocations: 459 kB / 0.5354 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.3749, allocations: 116.3 kB / 0.5355 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.3752, allocations: 154.6 kB / 0.5356 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.3755, allocations: 174 kB / 0.5358 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.096e-05/0.3756, allocations: 29.28 kB / 0.5358 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.3758, allocations: 59.55 kB / 0.5359 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.206e-05/0.376, allocations: 78.59 kB / 0.536 GB, free: 9.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.3762, allocations: 192.4 kB / 0.5361 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000653/0.3768, allocations: 442.2 kB / 0.5366 GB, free: 8.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3769, allocations: 3.938 kB / 0.5366 GB, free: 8.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3769, allocations: 0 / 0.5366 GB, free: 8.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.3769, allocations: 0 / 0.5366 GB, free: 8.973 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.001137/0.378, allocations: 0.6653 MB / 0.5372 GB, free: 8.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3781, allocations: 9.562 kB / 0.5372 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.321e-05/0.3782, allocations: 73.5 kB / 0.5373 GB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.3785, allocations: 68.44 kB / 0.5374 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.3789, allocations: 301.4 kB / 0.5377 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.698e-05/0.379, allocations: 27.69 kB / 0.5377 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.379, allocations: 48.95 kB / 0.5377 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006192/0.3797, allocations: 355.7 kB / 0.5381 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.3797, allocations: 10.39 kB / 0.5381 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.3797, allocations: 15.38 kB / 0.5381 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.3798, allocations: 12.97 kB / 0.5381 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.3802, allocations: 223.4 kB / 0.5383 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.3827, allocations: 1.577 MB / 0.5399 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006225/0.3834, allocations: 307.1 kB / 0.5401 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.3835, allocations: 104.7 kB / 0.5402 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.3836, allocations: 2.312 kB / 0.5402 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.3836, allocations: 42.47 kB / 0.5403 GB, free: 5.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.104e-06/0.3836, allocations: 0 / 0.5403 GB, free: 5.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007293/0.3844, allocations: 282.9 kB / 0.5406 GB, free: 5.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.3845, allocations: 188.6 kB / 0.5407 GB, free: 5.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.3848, allocations: 243.4 kB / 0.541 GB, free: 5.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.3848, allocations: 28.17 kB / 0.541 GB, free: 5.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.385, allocations: 215.1 kB / 0.5412 GB, free: 5.023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.386e-05/0.3851, allocations: 115.8 kB / 0.5413 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.3852, allocations: 81.67 kB / 0.5414 GB, free: 4.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.3854, allocations: 342 kB / 0.5417 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.3856, allocations: 85.17 kB / 0.5418 GB, free: 4.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.3859, allocations: 251.3 kB / 0.542 GB, free: 4.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005191/0.3864, allocations: 362.8 kB / 0.5424 GB, free: 3.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3865, allocations: 2.094 kB / 0.5424 GB, free: 3.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006669/0.3871, allocations: 387.5 kB / 0.5428 GB, free: 3.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3872, allocations: 7.25 kB / 0.5428 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3872, allocations: 5.812 kB / 0.5428 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.3872, allocations: 8.594 kB / 0.5428 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.3876, allocations: 105.8 kB / 0.5429 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.3876, allocations: 12.19 kB / 0.5429 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.3878, allocations: 41.67 kB / 0.5429 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.3879, allocations: 24.2 kB / 0.543 GB, free: 3.637 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.0001701/0.388, allocations: 163.4 kB / 0.5431 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3882, allocations: 34.28 kB / 0.5431 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.3884, allocations: 94.05 kB / 0.5432 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3884, allocations: 3.406 kB / 0.5432 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.3884, allocations: 6.281 kB / 0.5432 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.3884, allocations: 10.17 kB / 0.5432 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007158/0.3892, allocations: 345.3 kB / 0.5436 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3892, allocations: 1.562 kB / 0.5436 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.3896, allocations: 83.48 kB / 0.5437 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3896, allocations: 3.438 kB / 0.5437 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.3896, allocations: 7.406 kB / 0.5437 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.3896, allocations: 6.172 kB / 0.5437 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3896, allocations: 2.281 kB / 0.5437 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008391/0.3905, allocations: 0.7744 MB / 0.5444 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.705e-05/0.3906, allocations: 104.9 kB / 0.5445 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.494e-05/0.3906, allocations: 8.5 kB / 0.5445 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.391, allocations: 12.47 kB / 0.5446 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.391, allocations: 20.78 kB / 0.5446 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.391, allocations: 11.09 kB / 0.5446 GB, free: 2.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.3912, allocations: 168.2 kB / 0.5447 GB, free: 2.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3912, allocations: 0 / 0.5447 GB, free: 2.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006263/0.3919, allocations: 101.8 kB / 0.5448 GB, free: 2.105 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.001135/0.393, allocations: 1.305 MB / 0.5461 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004919/0.3935, allocations: 231.2 kB / 0.5463 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3935, allocations: 5.094 kB / 0.5463 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001802/0.3937, allocations: 93.62 kB / 0.5464 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.3946, allocations: 88.97 kB / 0.5465 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005294/0.3999, allocations: 4.082 MB / 0.5505 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.4005, allocations: 0.7989 MB / 0.5513 GB, free: 11.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001766/0.4007, allocations: 34.97 kB / 0.5513 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.4008, allocations: 111.4 kB / 0.5514 GB, free: 11.57 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4008, allocations: 0 / 0.5514 GB, free: 11.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.4316, allocations: 6.401 MB / 0.5577 GB, free: 5.289 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.607/9.038, allocations: 22.98 kB / 0.5577 GB, free: 5.27 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1)