Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 247 MB, free: 10.44 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.2168/0.2168, allocations: 46.12 MB / 344.4 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.002447/0.002448, allocations: 83.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3734, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003338/0.3768, allocations: 1.921 MB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009592/0.3778, allocations: 0.5654 MB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.273e-05/0.3779, allocations: 2.75 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.378, allocations: 21.11 kB / 0.533 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.3782, allocations: 45.12 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.3784, allocations: 47.88 kB / 0.5331 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.3786, allocations: 153.5 kB / 0.5333 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.3788, allocations: 61.31 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.379, allocations: 58.98 kB / 0.5334 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.3791, allocations: 66.83 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.3791, allocations: 15.91 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.3792, allocations: 13.47 kB / 0.5335 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.518e-05/0.3792, allocations: 36.16 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.827e-05/0.3793, allocations: 65.92 kB / 0.5336 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.3796, allocations: 156.9 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3796, allocations: 0 / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3796, allocations: 0 / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3796, allocations: 1.125 kB / 0.5337 GB, free: 10.91 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006213/0.3802, allocations: 438.7 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3803, allocations: 12.31 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.529e-05/0.3803, allocations: 47.52 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.3805, allocations: 30.89 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.3808, allocations: 208.9 kB / 0.5344 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3808, allocations: 10.31 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.3809, allocations: 16.02 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.3811, allocations: 131.3 kB / 0.5346 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3812, allocations: 3.938 kB / 0.5346 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.3812, allocations: 9.5 kB / 0.5346 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.3812, allocations: 4.031 kB / 0.5346 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.3814, allocations: 79.92 kB / 0.5347 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007095/0.3821, allocations: 461.6 kB / 0.5351 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.3824, allocations: 128.2 kB / 0.5352 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3825, allocations: 61.64 kB / 0.5353 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.3825, allocations: 1.375 kB / 0.5353 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.3825, allocations: 35.94 kB / 0.5353 GB, free: 9.465 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.593e-06/0.3825, allocations: 0 / 0.5353 GB, free: 9.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001632/0.3842, allocations: 0.8113 MB / 0.5361 GB, free: 8.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.3843, allocations: 53.66 kB / 0.5362 GB, free: 8.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.3844, allocations: 139.7 kB / 0.5363 GB, free: 8.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.3844, allocations: 30.77 kB / 0.5363 GB, free: 8.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.761e-05/0.3845, allocations: 118.6 kB / 0.5365 GB, free: 8.457 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.3846, allocations: 71.17 kB / 0.5365 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.3847, allocations: 41.14 kB / 0.5366 GB, free: 8.359 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3848, allocations: 321.4 kB / 0.5369 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.3849, allocations: 39.92 kB / 0.5369 GB, free: 8.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.3851, allocations: 80.62 kB / 0.537 GB, free: 7.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.3853, allocations: 140.4 kB / 0.5371 GB, free: 7.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3853, allocations: 1.188 kB / 0.5371 GB, free: 7.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000396/0.3857, allocations: 205.1 kB / 0.5373 GB, free: 7.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3858, allocations: 13.77 kB / 0.5373 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.3858, allocations: 4.969 kB / 0.5373 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001885/0.386, allocations: 42.12 kB / 0.5374 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.3862, allocations: 42.31 kB / 0.5374 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.3878, allocations: 1.73 MB / 0.5391 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.672e-05/0.3879, allocations: 7.438 kB / 0.5391 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.388, allocations: 5.531 kB / 0.5391 GB, free: 5.984 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.3881, allocations: 124.4 kB / 0.5392 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.172e-05/0.3882, allocations: 22.52 kB / 0.5393 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.3882, allocations: 20.09 kB / 0.5393 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3882, allocations: 5 kB / 0.5393 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.3882, allocations: 1.594 kB / 0.5393 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3882, allocations: 5.281 kB / 0.5393 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008023/0.389, allocations: 0.5484 MB / 0.5398 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.3891, allocations: 5.312 kB / 0.5398 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.3892, allocations: 38.84 kB / 0.5399 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001204/0.3894, allocations: 32.28 kB / 0.5399 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3894, allocations: 1.094 kB / 0.5399 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.3907, allocations: 1.482 MB / 0.5413 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3907, allocations: 0 / 0.5413 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.3913, allocations: 354 kB / 0.5417 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.363e-05/0.3913, allocations: 88.27 kB / 0.5418 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.3914, allocations: 6.594 kB / 0.5418 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.211e-05/0.3915, allocations: 5.281 kB / 0.5418 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.3915, allocations: 22.97 kB / 0.5418 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3916, allocations: 3.656 kB / 0.5418 GB, free: 3.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.747e-05/0.3917, allocations: 107.7 kB / 0.5419 GB, free: 3.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3917, allocations: 4.062 kB / 0.5419 GB, free: 3.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.392, allocations: 42.19 kB / 0.5419 GB, free: 3.324 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000935/0.393, allocations: 0.8833 MB / 0.5428 GB, free: 2.531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000577/0.3936, allocations: 256.8 kB / 0.5431 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3936, allocations: 0 / 0.5431 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.3939, allocations: 192.5 kB / 0.5432 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.3942, allocations: 31.59 kB / 0.5433 GB, free: 2.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.3969, allocations: 2.064 MB / 0.5453 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3973, allocations: 0.7198 MB / 0.546 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.194e-05/0.3974, allocations: 11.95 kB / 0.546 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.802e-05/0.3975, allocations: 43.14 kB / 0.546 GB, free: 15.69 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3975, allocations: 0 / 0.546 GB, free: 15.69 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03114/0.4287, allocations: 3.451 MB / 0.5494 GB, free: 13.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.78, allocations: 4.375 kB / 0.5494 GB, free: 13.7 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)