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.001375/0.001375, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.8 MB, free: 10.53 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.2463/0.2463, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.002487/0.002487, allocations: 77.25 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.13, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005139/0.1352, allocations: 2.852 MB / 483.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.137, allocations: 0.779 MB / 483.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003727/0.1374, allocations: 11.94 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1378, allocations: 47.45 kB / 483.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004265/0.1382, allocations: 130.8 kB / 484 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.1387, allocations: 107.8 kB / 484.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006443/0.1393, allocations: 437.9 kB / 484.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003227/0.1396, allocations: 137.6 kB / 484.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004143/0.1401, allocations: 171.4 kB / 484.9 MB, free: 472 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004288/0.1405, allocations: 179.2 kB / 485 MB, free: 292 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.062e-05/0.1406, allocations: 36 kB / 485.1 MB, free: 256 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.1408, allocations: 40 kB / 485.1 MB, free: 216 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.141, allocations: 79.64 kB / 485.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.1413, allocations: 199.1 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005956/0.1419, allocations: 426.7 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1419, allocations: 0 / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1419, allocations: 0 / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.142, allocations: 0 / 485.8 MB, free: 15.52 MB / 366.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.00119/0.1431, allocations: 0.659 MB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.1432, allocations: 8.031 kB / 486.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.1433, allocations: 70.72 kB / 486.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.1436, allocations: 64.44 kB / 486.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.144, allocations: 279.5 kB / 486.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.144, allocations: 29.38 kB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.977e-05/0.1441, allocations: 48.28 kB / 486.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006716/0.1448, allocations: 402.1 kB / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.1448, allocations: 0 / 487.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.1449, allocations: 19.94 kB / 487.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.1449, allocations: 12 kB / 487.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004635/0.1454, allocations: 224.8 kB / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.1478, allocations: 1.73 MB / 489.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.1483, allocations: 262.4 kB / 489.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.1485, allocations: 93.97 kB / 489.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.1485, allocations: 8 kB / 489.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.1486, allocations: 42.5 kB / 489.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.994e-06/0.1486, allocations: 0 / 489.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007536/0.1494, allocations: 265.8 kB / 490 MB, free: 11.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/0.1495, allocations: 217.6 kB / 490.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.1499, allocations: 275.2 kB / 490.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.15, allocations: 25.7 kB / 490.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.1502, allocations: 243.4 kB / 490.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.1503, allocations: 114.4 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1505, allocations: 102.2 kB / 490.9 MB, free: 9.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.1507, allocations: 350.7 kB / 491.3 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.1509, allocations: 97.25 kB / 491.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.1515, allocations: 424.8 kB / 491.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008157/0.1523, allocations: 0.5745 MB / 492.4 MB, free: 8.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.1523, allocations: 8.062 kB / 492.4 MB, free: 8.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009136/0.1532, allocations: 0.5282 MB / 492.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.1533, allocations: 8 kB / 492.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.1533, allocations: 15.98 kB / 492.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.15e-05/0.1533, allocations: 16 kB / 492.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.1538, allocations: 148.3 kB / 493.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.586e-05/0.1538, allocations: 19.94 kB / 493.1 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.1542, allocations: 75.36 kB / 493.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.341e-05/0.1542, allocations: 32 kB / 493.2 MB, free: 7.359 MB / 366.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.0002193/0.1545, allocations: 173.5 kB / 493.4 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.1546, allocations: 35.62 kB / 493.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.536e-05/0.1547, allocations: 33.83 kB / 493.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.1547, allocations: 4 kB / 493.4 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.117e-05/0.1548, allocations: 3.984 kB / 493.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.1548, allocations: 11.94 kB / 493.5 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.1561, allocations: 0.6475 MB / 494.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.1561, allocations: 4 kB / 494.1 MB, free: 6.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000427/0.1566, allocations: 91.88 kB / 494.2 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.1566, allocations: 4 kB / 494.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.1566, allocations: 11.94 kB / 494.2 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.1566, allocations: 12 kB / 494.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1566, allocations: 0 / 494.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008596/0.1575, allocations: 0.8309 MB / 495.1 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.56e-05/0.1576, allocations: 108.8 kB / 495.2 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.261e-05/0.1576, allocations: 19.92 kB / 495.2 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.158, allocations: 8 kB / 495.2 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.158, allocations: 28.03 kB / 495.2 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.1581, allocations: 16 kB / 495.2 MB, free: 5.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.1583, allocations: 186 kB / 495.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1583, allocations: 0 / 495.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007542/0.159, allocations: 107.7 kB / 495.5 MB, free: 4.922 MB / 366.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.001349/0.1604, allocations: 1.377 MB / 496.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006155/0.161, allocations: 297 kB / 497.2 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.161, allocations: 4 kB / 497.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.1612, allocations: 89.33 kB / 497.3 MB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.1624, allocations: 68.55 kB / 497.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006499/0.1689, allocations: 4.942 MB / 0.4905 GB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.1695, allocations: 0.7948 MB / 0.4913 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.1697, allocations: 47.25 kB / 0.4913 GB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.1699, allocations: 115.4 kB / 0.4914 GB, free: 12.71 MB / 382.1 MB Notification: Performance of SimCode: time 2.435e-06/0.1699, allocations: 0 / 0.4914 GB, free: 12.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.2038, allocations: 6.513 MB / 0.4978 GB, free: 6.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.261, allocations: 19.12 kB / 0.4978 GB, free: 6.293 MB / 382.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)