Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002347/0.002346, allocations: 189.8 kB / 16.4 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 103.1 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5891/0.5891, allocations: 43.55 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005893/0.0005896, allocations: 11.98 kB / 431.5 MB, free: 5.871 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1366, allocations: 58.85 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002298/0.139, allocations: 1.303 MB / 491.6 MB, free: 9.621 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003563/0.1394, allocations: 115.7 kB / 491.7 MB, free: 9.508 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.293e-05/0.1395, allocations: 0 / 491.7 MB, free: 9.508 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.027e-05/0.1395, allocations: 15.92 kB / 491.7 MB, free: 9.492 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.1397, allocations: 35.91 kB / 491.8 MB, free: 9.457 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001277/0.1398, allocations: 23.92 kB / 491.8 MB, free: 9.434 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.14, allocations: 83.86 kB / 491.9 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.1401, allocations: 29.09 kB / 491.9 MB, free: 9.324 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.729e-05/0.1403, allocations: 43.86 kB / 491.9 MB, free: 9.281 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1404, allocations: 43.78 kB / 492 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/0.1404, allocations: 8 kB / 492 MB, free: 9.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.014e-05/0.1404, allocations: 4 kB / 492 MB, free: 9.227 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.1405, allocations: 19.92 kB / 492 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.961e-05/0.1405, allocations: 49.64 kB / 492.1 MB, free: 9.152 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.1407, allocations: 84.03 kB / 492.1 MB, free: 9.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1407, allocations: 0 / 492.1 MB, free: 9.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1407, allocations: 0 / 492.1 MB, free: 9.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1408, allocations: 0 / 492.1 MB, free: 9.07 MB / 378.7 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.0005891/0.1414, allocations: 391.2 kB / 492.5 MB, free: 8.637 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1414, allocations: 11.97 kB / 492.5 MB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.451e-05/0.1415, allocations: 50.48 kB / 492.6 MB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.1416, allocations: 19.77 kB / 492.6 MB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.1418, allocations: 183 kB / 492.8 MB, free: 8.328 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.1418, allocations: 8.234 kB / 492.8 MB, free: 8.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.1419, allocations: 15.91 kB / 492.8 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1422, allocations: 128.9 kB / 492.9 MB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1422, allocations: 4 kB / 492.9 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.1423, allocations: 8 kB / 493 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1423, allocations: 0 / 493 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.1425, allocations: 63.91 kB / 493 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1436, allocations: 0.5489 MB / 493.6 MB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.1438, allocations: 85.25 kB / 493.6 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1439, allocations: 7.984 kB / 493.7 MB, free: 7.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.1439, allocations: 38.56 kB / 493.7 MB, free: 7.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.946e-06/0.1439, allocations: 0 / 493.7 MB, free: 7.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008212/0.1448, allocations: 297.4 kB / 494 MB, free: 6.988 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.1449, allocations: 81.11 kB / 494.1 MB, free: 6.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.145, allocations: 117.8 kB / 494.2 MB, free: 6.766 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.145, allocations: 33.64 kB / 494.2 MB, free: 6.727 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1452, allocations: 201.8 kB / 494.4 MB, free: 6.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.1452, allocations: 31.55 kB / 494.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.1453, allocations: 0 / 494.4 MB, free: 6.496 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1454, allocations: 314.8 kB / 494.7 MB, free: 6.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.335e-05/0.1455, allocations: 23.98 kB / 494.8 MB, free: 6.156 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.1456, allocations: 92.38 kB / 494.9 MB, free: 6.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.1457, allocations: 31.94 kB / 494.9 MB, free: 6.008 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1458, allocations: 4 kB / 494.9 MB, free: 6.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000472/0.1462, allocations: 167 kB / 495.1 MB, free: 5.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.1463, allocations: 8 kB / 495.1 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1463, allocations: 0 / 495.1 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.1466, allocations: 45.89 kB / 495.1 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1467, allocations: 19.98 kB / 495.1 MB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.1494, allocations: 2.548 MB / 497.7 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.1496, allocations: 20.28 kB / 497.7 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.1496, allocations: 8 kB / 497.7 MB, free: 2.906 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001565/0.1498, allocations: 133.7 kB / 497.8 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.627e-05/0.1498, allocations: 4 kB / 497.8 MB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.814e-05/0.1499, allocations: 15.89 kB / 497.9 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1499, allocations: 0 / 497.9 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1499, allocations: 0 / 497.9 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1499, allocations: 0 / 497.9 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.1503, allocations: 209.4 kB / 498.1 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1503, allocations: 0 / 498.1 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.1505, allocations: 19.98 kB / 498.1 MB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.1507, allocations: 33.7 kB / 498.1 MB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1507, allocations: 0 / 498.1 MB, free: 2.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/0.1533, allocations: 2.541 MB / 0.4889 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1533, allocations: 0 / 0.4889 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/0.1538, allocations: 318 kB / 0.4892 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.1539, allocations: 89.2 kB / 0.4893 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.417e-05/0.154, allocations: 7.984 kB / 0.4893 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.1541, allocations: 4 kB / 0.4893 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.1542, allocations: 11.94 kB / 0.4893 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.1542, allocations: 4 kB / 0.4893 GB, free: 15.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.916e-05/0.1543, allocations: 95.64 kB / 0.4894 GB, free: 15.06 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.1543, allocations: 0 / 0.4894 GB, free: 15.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005176/0.1548, allocations: 35.94 kB / 0.4895 GB, free: 15.03 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009052/0.1557, allocations: 0.9126 MB / 0.4904 GB, free: 14.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000607/0.1564, allocations: 305.1 kB / 0.4906 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1564, allocations: 7.938 kB / 0.4906 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.1568, allocations: 249.4 kB / 0.4909 GB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.1573, allocations: 20.47 kB / 0.4909 GB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002918/0.1602, allocations: 2.387 MB / 0.4932 GB, free: 10.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.1607, allocations: 0.72 MB / 0.4939 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.28e-05/0.1608, allocations: 27.38 kB / 0.494 GB, free: 10.19 MB / 394.7 MB Notification: Performance of SimCode: time 4.208e-06/0.1608, allocations: 0 / 0.494 GB, free: 10.19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/3.026, allocations: 2.9 MB / 0.4968 GB, free: 7.285 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat