Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001992/0.001992, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, 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.2357/0.2357, allocations: 46.13 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.002287/0.002288, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3538, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.004662/0.3585, allocations: 2.857 MB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.3604, allocations: 0.804 MB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.3607, allocations: 6.875 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.3609, allocations: 62.19 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.3612, allocations: 128.6 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.3615, allocations: 118.9 kB / 0.5345 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005117/0.3621, allocations: 448.7 kB / 0.5349 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003349/0.3624, allocations: 194.2 kB / 0.5351 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.3627, allocations: 173 kB / 0.5353 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.363, allocations: 191.8 kB / 0.5354 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.265e-05/0.3631, allocations: 34.97 kB / 0.5355 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3632, allocations: 37.38 kB / 0.5355 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.737e-05/0.3633, allocations: 79.14 kB / 0.5356 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.3635, allocations: 217.7 kB / 0.5358 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006595/0.3642, allocations: 461.6 kB / 0.5362 GB, free: 9.031 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3642, allocations: 1.125 kB / 0.5362 GB, free: 9.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3642, allocations: 0 / 0.5362 GB, free: 9.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3642, allocations: 0 / 0.5362 GB, free: 9.031 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001225/0.3655, allocations: 0.6826 MB / 0.5369 GB, free: 8.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3655, allocations: 9.781 kB / 0.5369 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.503e-05/0.3656, allocations: 79.84 kB / 0.537 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004425/0.3661, allocations: 70.19 kB / 0.537 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.3666, allocations: 308.5 kB / 0.5373 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.3666, allocations: 28.66 kB / 0.5374 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.286e-05/0.3667, allocations: 37.44 kB / 0.5374 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000729/0.3674, allocations: 389.4 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.3675, allocations: 5.141 kB / 0.5378 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.3675, allocations: 15.66 kB / 0.5378 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.3675, allocations: 9.906 kB / 0.5378 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005479/0.3681, allocations: 252.2 kB / 0.538 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3698, allocations: 1.099 MB / 0.5391 GB, free: 6.715 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.3705, allocations: 356 kB / 0.5395 GB, free: 6.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.3708, allocations: 173.9 kB / 0.5396 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.3708, allocations: 4.188 kB / 0.5396 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.3709, allocations: 48.67 kB / 0.5397 GB, free: 6.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.764e-06/0.3709, allocations: 1.062 kB / 0.5397 GB, free: 6.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.004146/0.375, allocations: 2.456 MB / 0.5421 GB, free: 4.355 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.604e-05/0.3751, allocations: 109.6 kB / 0.5422 GB, free: 4.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.3754, allocations: 249.2 kB / 0.5424 GB, free: 4.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.3754, allocations: 35.89 kB / 0.5424 GB, free: 4.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.3756, allocations: 181 kB / 0.5426 GB, free: 3.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.3758, allocations: 213.5 kB / 0.5428 GB, free: 3.668 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3759, allocations: 82.98 kB / 0.5429 GB, free: 3.609 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.3761, allocations: 350.2 kB / 0.5432 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.3764, allocations: 131.3 kB / 0.5434 GB, free: 3.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.3767, allocations: 230.4 kB / 0.5436 GB, free: 3.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006426/0.3774, allocations: 405.3 kB / 0.544 GB, free: 2.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.3774, allocations: 1.125 kB / 0.544 GB, free: 2.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001108/0.3785, allocations: 0.5645 MB / 0.5445 GB, free: 2.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3785, allocations: 6.031 kB / 0.5445 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3785, allocations: 3.469 kB / 0.5445 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/0.3789, allocations: 120.9 kB / 0.5446 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.3793, allocations: 105.1 kB / 0.5447 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004787/0.3841, allocations: 5.214 MB / 0.5498 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.3844, allocations: 23.98 kB / 0.5499 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.3845, allocations: 16 kB / 0.5499 GB, free: 12.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.3847, allocations: 173.7 kB / 0.55 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.941e-05/0.3848, allocations: 39.77 kB / 0.5501 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.577e-05/0.3849, allocations: 46.17 kB / 0.5501 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3849, allocations: 4 kB / 0.5501 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/0.385, allocations: 8.125 kB / 0.5501 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.385, allocations: 3.984 kB / 0.5501 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.3871, allocations: 1.331 MB / 0.5514 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3871, allocations: 3.938 kB / 0.5514 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004114/0.3875, allocations: 95.88 kB / 0.5515 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.3878, allocations: 94.45 kB / 0.5516 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.3878, allocations: 12 kB / 0.5516 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00371/0.3915, allocations: 4.439 MB / 0.556 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3916, allocations: 0 / 0.556 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.393, allocations: 0.9334 MB / 0.5569 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.3931, allocations: 112.9 kB / 0.557 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/0.3932, allocations: 15.98 kB / 0.557 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.3935, allocations: 12 kB / 0.557 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.3936, allocations: 51.81 kB / 0.5571 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.3936, allocations: 20 kB / 0.5571 GB, free: 4.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.3938, allocations: 178 kB / 0.5573 GB, free: 4.785 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3938, allocations: 0 / 0.5573 GB, free: 4.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007162/0.3945, allocations: 124 kB / 0.5574 GB, free: 4.664 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (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.001696/0.3962, allocations: 1.476 MB / 0.5588 GB, free: 3.145 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.3976, allocations: 0.7773 MB / 0.5596 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3976, allocations: 0 / 0.5596 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008172/0.3984, allocations: 0.5686 MB / 0.5601 GB, free: 1.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.3992, allocations: 64.66 kB / 0.5602 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/0.4052, allocations: 4.179 MB / 0.5643 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005575/0.4058, allocations: 0.8241 MB / 0.5651 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.406, allocations: 39.25 kB / 0.5651 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4062, allocations: 131.4 kB / 0.5652 GB, free: 12.27 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4062, allocations: 4 kB / 0.5652 GB, free: 12.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04088/0.4471, allocations: 8.365 MB / 0.5734 GB, free: 4.055 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.58, allocations: 15.36 kB / 0.5734 GB, free: 4.043 MB / 430.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1)