Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.001329, allocations: 122.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.001551/0.001551, allocations: 202 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.496/1.496, allocations: 227.4 MB / 247 MB, free: 10.42 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.237/0.237, 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.003201/0.003201, allocations: 75.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3462, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008187/0.3545, allocations: 5.783 MB / 0.5362 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00496/0.3595, allocations: 2.353 MB / 0.5385 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.3607, allocations: 42.5 kB / 0.5386 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006353/0.3614, allocations: 224.8 kB / 0.5388 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006975/0.3621, allocations: 176.4 kB / 0.5389 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.3634, allocations: 478.3 kB / 0.5394 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.3648, allocations: 1.12 MB / 0.5405 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009348/0.3658, allocations: 0.6098 MB / 0.5411 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006314/0.3664, allocations: 370.4 kB / 0.5414 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005356/0.367, allocations: 396.7 kB / 0.5418 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.3671, allocations: 98.5 kB / 0.5419 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003257/0.3675, allocations: 157.2 kB / 0.5421 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.3677, allocations: 210.5 kB / 0.5423 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004904/0.3682, allocations: 471 kB / 0.5427 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001639/0.3698, allocations: 1.283 MB / 0.544 GB, free: 3.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3699, allocations: 0 / 0.544 GB, free: 3.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3699, allocations: 0 / 0.544 GB, free: 3.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.498e-05/0.3699, allocations: 1.531 kB / 0.544 GB, free: 3.016 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001815/0.3717, allocations: 1.167 MB / 0.5451 GB, free: 2.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3718, allocations: 9.562 kB / 0.5451 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.372, allocations: 145.8 kB / 0.5453 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/0.3723, allocations: 119.5 kB / 0.5454 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.3733, allocations: 0.5957 MB / 0.546 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.905e-05/0.3734, allocations: 66.72 kB / 0.546 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.3736, allocations: 98.67 kB / 0.5461 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.3752, allocations: 0.8885 MB / 0.547 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.663e-05/0.3752, allocations: 11.38 kB / 0.547 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.342e-05/0.3753, allocations: 37.5 kB / 0.547 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.3754, allocations: 22.09 kB / 0.547 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.3764, allocations: 0.5195 MB / 0.5476 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004267/0.3807, allocations: 3.62 MB / 0.5511 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000616/0.3814, allocations: 229.6 kB / 0.5513 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.3816, allocations: 104.8 kB / 0.5514 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.3818, allocations: 251.3 kB / 0.5517 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.3819, allocations: 34.56 kB / 0.5517 GB, free: 11.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 3.797e-06/0.3819, allocations: 0 / 0.5517 GB, free: 11.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002727/0.3846, allocations: 1.317 MB / 0.553 GB, free: 10.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.3847, allocations: 55.41 kB / 0.553 GB, free: 10.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.3851, allocations: 401.8 kB / 0.5534 GB, free: 9.812 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.3852, allocations: 33.7 kB / 0.5534 GB, free: 9.773 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.3855, allocations: 475.5 kB / 0.5539 GB, free: 9.301 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3856, allocations: 146.8 kB / 0.554 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3858, allocations: 94.2 kB / 0.5541 GB, free: 9.059 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.386, allocations: 362.8 kB / 0.5545 GB, free: 8.695 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.3862, allocations: 117.1 kB / 0.5546 GB, free: 8.578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/0.3866, allocations: 314 kB / 0.5549 GB, free: 8.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006377/0.3873, allocations: 459.6 kB / 0.5553 GB, free: 7.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3873, allocations: 4 kB / 0.5553 GB, free: 7.648 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009002/0.3882, allocations: 0.5089 MB / 0.5558 GB, free: 7.129 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3882, allocations: 8 kB / 0.5558 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.3882, allocations: 8.781 kB / 0.5558 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002415/0.3885, allocations: 48.7 kB / 0.5559 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.3889, allocations: 123.8 kB / 0.556 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00043/0.3893, allocations: 0.5524 MB / 0.5565 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.3896, allocations: 23.98 kB / 0.5566 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.3897, allocations: 24 kB / 0.5566 GB, free: 6.316 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.39, allocations: 237.5 kB / 0.5568 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.3901, allocations: 51.73 kB / 0.5569 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006556/0.3908, allocations: 326.9 kB / 0.5572 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3908, allocations: 4 kB / 0.5572 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3908, allocations: 0 / 0.5572 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.3908, allocations: 7.984 kB / 0.5572 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.3924, allocations: 1.055 MB / 0.5582 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3925, allocations: 0 / 0.5582 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.3929, allocations: 91.83 kB / 0.5583 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.393, allocations: 28.84 kB / 0.5583 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.3931, allocations: 8.156 kB / 0.5583 GB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003836/0.3934, allocations: 0.5523 MB / 0.5589 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.3935, allocations: 4.031 kB / 0.5589 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008263/0.3943, allocations: 0.5617 MB / 0.5594 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.3944, allocations: 120.8 kB / 0.5595 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.912e-05/0.3945, allocations: 8 kB / 0.5596 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.3946, allocations: 11.98 kB / 0.5596 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.3947, allocations: 31.91 kB / 0.5596 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.3947, allocations: 8 kB / 0.5596 GB, free: 3.035 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.395, allocations: 271.1 kB / 0.5599 GB, free: 2.773 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.395, allocations: 0 / 0.5599 GB, free: 2.773 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005624/0.3956, allocations: 131.9 kB / 0.56 GB, free: 2.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/0.3969, allocations: 1.127 MB / 0.5611 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006972/0.3976, allocations: 331.7 kB / 0.5614 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3976, allocations: 5.688 kB / 0.5614 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.3979, allocations: 143.8 kB / 0.5615 GB, free: 1.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005975/0.3985, allocations: 66.62 kB / 0.5616 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006869/0.4054, allocations: 4.856 MB / 0.5663 GB, free: 11.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000649/0.4061, allocations: 0.9563 MB / 0.5673 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002108/0.4063, allocations: 64.47 kB / 0.5673 GB, free: 10.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.4067, allocations: 295.3 kB / 0.5676 GB, free: 10.47 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4067, allocations: 0 / 0.5676 GB, free: 10.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03919/0.4459, allocations: 9.41 MB / 0.5768 GB, free: 1.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/13.01, allocations: 5.016 kB / 0.5768 GB, free: 1.211 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1)