Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001378, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2328/0.2328, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002283/0.002283, allocations: 85.06 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.137, allocations: 62.44 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003465/0.1405, allocations: 1.665 MB / 481.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003018/0.1409, allocations: 111.6 kB / 482 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.475e-05/0.1409, allocations: 0 / 482 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.875e-05/0.141, allocations: 15.86 kB / 482 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.1411, allocations: 39.64 kB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001291/0.1412, allocations: 27.97 kB / 482.1 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.1414, allocations: 123.4 kB / 482.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.1416, allocations: 45.03 kB / 482.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.032e-05/0.1417, allocations: 39.86 kB / 482.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.1418, allocations: 51.77 kB / 482.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.1418, allocations: 12 kB / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.389e-05/0.1419, allocations: 8 kB / 482.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.228e-05/0.1419, allocations: 23.92 kB / 482.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.292e-05/0.142, allocations: 55.75 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.1421, allocations: 119.9 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1422, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1422, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1422, allocations: 7.938 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.00058/0.1428, allocations: 411.3 kB / 482.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1428, allocations: 8.031 kB / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.76e-05/0.1429, allocations: 42.75 kB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.143, allocations: 16.75 kB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.1432, allocations: 196.2 kB / 483.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.1432, allocations: 8.609 kB / 483.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.1433, allocations: 16.28 kB / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.1435, allocations: 133.5 kB / 483.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.1435, allocations: 7.938 kB / 483.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1436, allocations: 4 kB / 483.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1436, allocations: 4 kB / 483.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.1437, allocations: 63.91 kB / 483.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008124/0.1445, allocations: 0.5333 MB / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1447, allocations: 89.17 kB / 484 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.897e-05/0.1447, allocations: 33.73 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.1448, allocations: 4 kB / 484.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.1448, allocations: 30.56 kB / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.1448, allocations: 0 / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000631/0.1454, allocations: 309.3 kB / 484.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.1455, allocations: 81.11 kB / 484.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.1456, allocations: 125.8 kB / 484.6 MB, free: 436 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1457, allocations: 25.7 kB / 484.6 MB, free: 404 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.907e-05/0.1457, allocations: 119.6 kB / 484.8 MB, free: 280 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/0.1458, allocations: 31.55 kB / 484.8 MB, free: 248 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.353e-05/0.1458, allocations: 29.72 kB / 484.8 MB, free: 212 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.146, allocations: 326.8 kB / 485.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.1461, allocations: 23.98 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.1462, allocations: 88.52 kB / 485.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.1463, allocations: 124.5 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/0.1463, allocations: 4 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002845/0.1466, allocations: 159.1 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1467, allocations: 7.938 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1467, allocations: 11.92 kB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.1469, allocations: 41.95 kB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.361e-05/0.147, allocations: 16 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.1493, allocations: 2.735 MB / 488.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.607e-05/0.1494, allocations: 15.88 kB / 488.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1494, allocations: 8 kB / 488.4 MB, free: 12.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.1495, allocations: 125.9 kB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.791e-05/0.1496, allocations: 11.84 kB / 488.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.969e-05/0.1496, allocations: 15.84 kB / 488.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1496, allocations: 3.984 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1496, allocations: 4 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1496, allocations: 0 / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.1499, allocations: 197.6 kB / 488.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1499, allocations: 0 / 488.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.254e-05/0.15, allocations: 15.98 kB / 488.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.1501, allocations: 49.64 kB / 488.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.1501, allocations: 0 / 488.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002073/0.1522, allocations: 2.73 MB / 491.5 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1522, allocations: 0 / 491.5 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003346/0.1526, allocations: 312.8 kB / 491.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.058e-05/0.1526, allocations: 89.05 kB / 491.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.1527, allocations: 4 kB / 491.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.904e-05/0.1528, allocations: 0 / 491.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.1528, allocations: 7.984 kB / 491.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1528, allocations: 4 kB / 491.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.55e-05/0.1529, allocations: 99.2 kB / 492 MB, free: 8.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1529, allocations: 7.938 kB / 492 MB, free: 8.246 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000347/0.1532, allocations: 35.94 kB / 492.1 MB, free: 8.211 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006254/0.1539, allocations: 0.83 MB / 492.9 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004916/0.1544, allocations: 313.2 kB / 493.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1544, allocations: 0 / 493.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.1547, allocations: 249.9 kB / 493.4 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.1552, allocations: 43.91 kB / 493.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.1575, allocations: 1.984 MB / 495.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1579, allocations: 0.7083 MB / 496.2 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.722e-05/0.158, allocations: 8.891 kB / 496.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.99e-05/0.158, allocations: 31.42 kB / 496.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.158, allocations: 0 / 496.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/0.1904, allocations: 2.934 MB / 499.1 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.948/10.14, allocations: 10.81 kB / 499.2 MB, free: 0.9883 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1)