Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001733/0.001733, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001925/0.001925, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 247 MB, free: 10.41 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.2347/0.2347, allocations: 46.12 MB / 344.3 MB, free: 11.43 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.003875/0.003875, allocations: 79.86 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3688, allocations: 62.45 MB / 0.5306 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004561/0.3734, allocations: 2.852 MB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.3752, allocations: 0.7768 MB / 0.5341 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.3755, allocations: 10.81 kB / 0.5342 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.3757, allocations: 56.89 kB / 0.5342 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.3761, allocations: 126 kB / 0.5343 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.3765, allocations: 113.5 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005712/0.3771, allocations: 434.2 kB / 0.5348 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.3774, allocations: 142.1 kB / 0.535 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003729/0.3778, allocations: 166.7 kB / 0.5351 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.3781, allocations: 179.7 kB / 0.5353 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.11e-05/0.3781, allocations: 33.41 kB / 0.5353 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.3783, allocations: 34.72 kB / 0.5354 GB, free: 9.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.28e-05/0.3784, allocations: 86.41 kB / 0.5355 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002155/0.3786, allocations: 200.8 kB / 0.5357 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005937/0.3792, allocations: 437.8 kB / 0.5361 GB, free: 9.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.309e-05/0.3792, allocations: 7.984 kB / 0.5361 GB, free: 9.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3792, allocations: 3.938 kB / 0.5361 GB, free: 9.109 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3792, allocations: 0 / 0.5361 GB, free: 9.109 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001088/0.3803, allocations: 0.657 MB / 0.5367 GB, free: 8.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3804, allocations: 8.75 kB / 0.5367 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.443e-05/0.3805, allocations: 75.5 kB / 0.5368 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000279/0.3808, allocations: 60.62 kB / 0.5369 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.3812, allocations: 282.9 kB / 0.5371 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.3812, allocations: 32.34 kB / 0.5372 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.84e-05/0.3813, allocations: 46.16 kB / 0.5372 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006836/0.382, allocations: 394.5 kB / 0.5376 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.3821, allocations: 10.83 kB / 0.5376 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.3821, allocations: 15.41 kB / 0.5376 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.3821, allocations: 10.25 kB / 0.5376 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.3826, allocations: 215.4 kB / 0.5378 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.3851, allocations: 1.72 MB / 0.5395 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.3856, allocations: 265.5 kB / 0.5398 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.3858, allocations: 103.3 kB / 0.5399 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.3859, allocations: 6.188 kB / 0.5399 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.3859, allocations: 47.56 kB / 0.5399 GB, free: 5.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.534e-06/0.3859, allocations: 0 / 0.5399 GB, free: 5.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007349/0.3867, allocations: 260.7 kB / 0.5402 GB, free: 5.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.3868, allocations: 221 kB / 0.5404 GB, free: 5.387 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.3872, allocations: 277.1 kB / 0.5406 GB, free: 5.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.3872, allocations: 30.67 kB / 0.5407 GB, free: 5.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.3874, allocations: 241.2 kB / 0.5409 GB, free: 4.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.3875, allocations: 124.8 kB / 0.541 GB, free: 4.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.3876, allocations: 96.7 kB / 0.5411 GB, free: 4.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3878, allocations: 351.5 kB / 0.5414 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.388, allocations: 98.69 kB / 0.5415 GB, free: 4.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005155/0.3886, allocations: 430 kB / 0.5419 GB, free: 3.879 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007292/0.3893, allocations: 0.565 MB / 0.5425 GB, free: 3.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.3893, allocations: 3.688 kB / 0.5425 GB, free: 3.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001028/0.3903, allocations: 0.5361 MB / 0.543 GB, free: 3.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3904, allocations: 13.78 kB / 0.543 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.3904, allocations: 11.94 kB / 0.543 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/0.3904, allocations: 15.06 kB / 0.5431 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.3909, allocations: 153.2 kB / 0.5432 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.3909, allocations: 19.88 kB / 0.5432 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.3913, allocations: 66.92 kB / 0.5433 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.3913, allocations: 31.59 kB / 0.5433 GB, free: 2.918 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002394/0.3916, allocations: 187.8 kB / 0.5435 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.3917, allocations: 32 kB / 0.5435 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.006e-05/0.3918, allocations: 34.45 kB / 0.5436 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3918, allocations: 4.531 kB / 0.5436 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.3918, allocations: 2.281 kB / 0.5436 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3918, allocations: 6.297 kB / 0.5436 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.3931, allocations: 0.6555 MB / 0.5442 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.3931, allocations: 2.594 kB / 0.5442 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.3936, allocations: 91.97 kB / 0.5443 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.3936, allocations: 4.125 kB / 0.5443 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.3936, allocations: 9.188 kB / 0.5443 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.3937, allocations: 6.625 kB / 0.5443 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3937, allocations: 2.562 kB / 0.5443 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008142/0.3945, allocations: 0.8359 MB / 0.5451 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.309e-05/0.3946, allocations: 106.5 kB / 0.5452 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.3946, allocations: 17.27 kB / 0.5453 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003368/0.395, allocations: 9.562 kB / 0.5453 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.074e-05/0.3951, allocations: 26.22 kB / 0.5453 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.3951, allocations: 7.125 kB / 0.5453 GB, free: 1.227 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.3953, allocations: 193.1 kB / 0.5455 GB, free: 1.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3953, allocations: 4 kB / 0.5455 GB, free: 1.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007882/0.3961, allocations: 99.08 kB / 0.5456 GB, free: 1.066 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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.001164/0.3972, allocations: 1.385 MB / 0.5469 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006623/0.3979, allocations: 289.8 kB / 0.5472 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.3979, allocations: 4.062 kB / 0.5472 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.3981, allocations: 93.02 kB / 0.5473 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3992, allocations: 74.39 kB / 0.5474 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006443/0.4056, allocations: 4.95 MB / 0.5522 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.4062, allocations: 0.795 MB / 0.553 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.4064, allocations: 43.27 kB / 0.553 GB, free: 9.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.4066, allocations: 119.4 kB / 0.5531 GB, free: 9.223 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4066, allocations: 0 / 0.5531 GB, free: 9.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03221/0.4388, allocations: 6.661 MB / 0.5596 GB, free: 2.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.842/9.28, allocations: 7.375 kB / 0.5597 GB, free: 2.695 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1)