Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000942/0.0009422, allocations: 95.47 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008934/0.0008935, allocations: 181.1 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 241.8 MB, free: 400 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2108/0.2108, allocations: 44.23 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003136, allocations: 8.953 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1318, allocations: 61.91 MB / 471.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002582/0.1344, allocations: 2.253 MB / 473.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1355, allocations: 0.6939 MB / 474.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1356, allocations: 15.88 kB / 474.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.046e-05/0.1357, allocations: 31.7 kB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002286/0.1359, allocations: 135.6 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.1361, allocations: 67.92 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003404/0.1365, allocations: 299.4 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.1367, allocations: 100.2 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.1369, allocations: 155.4 kB / 475.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.1371, allocations: 155.3 kB / 475.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.1371, allocations: 20 kB / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.623e-05/0.1372, allocations: 20 kB / 475.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.049e-05/0.1372, allocations: 55.77 kB / 475.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.244e-05/0.1373, allocations: 97.52 kB / 475.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.1376, allocations: 307.3 kB / 475.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.1376, allocations: 0 / 475.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1376, allocations: 0 / 475.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1376, allocations: 0 / 475.9 MB, free: 9.289 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0007801/0.1384, allocations: 0.5888 MB / 476.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1384, allocations: 12.03 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.564e-05/0.1385, allocations: 70.53 kB / 476.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.1386, allocations: 39.53 kB / 476.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.1389, allocations: 267.3 kB / 476.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.1389, allocations: 29 kB / 476.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.139, allocations: 51.84 kB / 476.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005454/0.1395, allocations: 386.2 kB / 477.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.1395, allocations: 19.83 kB / 477.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.1396, allocations: 16 kB / 477.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1396, allocations: 8 kB / 477.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003968/0.14, allocations: 227.7 kB / 477.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.1421, allocations: 1.723 MB / 479.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/0.1425, allocations: 258.4 kB / 479.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.1425, allocations: 11.94 kB / 479.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.1426, allocations: 46.64 kB / 479.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.174e-06/0.1426, allocations: 0 / 479.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006433/0.1432, allocations: 273.3 kB / 479.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.584e-05/0.1433, allocations: 213.6 kB / 480.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.1436, allocations: 279 kB / 480.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.1436, allocations: 29.7 kB / 480.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.1438, allocations: 239.4 kB / 480.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.1439, allocations: 126.2 kB / 480.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/0.1439, allocations: 8 kB / 480.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1441, allocations: 342.8 kB / 481.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1443, allocations: 105.2 kB / 481.2 MB, free: 3.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000384/0.1447, allocations: 432.8 kB / 481.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.1449, allocations: 172.2 kB / 481.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.145, allocations: 4 kB / 481.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007927/0.1458, allocations: 0.5249 MB / 482.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1458, allocations: 8 kB / 482.3 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.1458, allocations: 12.03 kB / 482.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.1459, allocations: 27.89 kB / 482.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004265/0.1463, allocations: 143.8 kB / 482.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.536e-05/0.1463, allocations: 27.86 kB / 482.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.1466, allocations: 63.44 kB / 482.6 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.1467, allocations: 35.98 kB / 482.6 MB, free: 1.988 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001764/0.1469, allocations: 182.1 kB / 482.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.147, allocations: 31.62 kB / 482.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.694e-05/0.1471, allocations: 33.78 kB / 482.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.1471, allocations: 7.953 kB / 482.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.1471, allocations: 4 kB / 482.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1471, allocations: 0 / 482.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1483, allocations: 0.6514 MB / 483.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.1483, allocations: 4 kB / 483.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.1487, allocations: 87.89 kB / 483.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1488, allocations: 7.953 kB / 483.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.1488, allocations: 16.61 kB / 483.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1488, allocations: 0 / 483.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1488, allocations: 4 kB / 483.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007879/0.1496, allocations: 0.9447 MB / 484.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.1497, allocations: 100.9 kB / 484.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.1498, allocations: 12 kB / 484.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.1501, allocations: 11.98 kB / 484.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.1502, allocations: 27.92 kB / 484.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1502, allocations: 8 kB / 484.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001715/0.1504, allocations: 186 kB / 484.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.1504, allocations: 3.938 kB / 484.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007447/0.1511, allocations: 107.7 kB / 485 MB, free: 15.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/0.1524, allocations: 2.032 MB / 487.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006291/0.1531, allocations: 301.1 kB / 487.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1531, allocations: 4 kB / 487.4 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1533, allocations: 89.2 kB / 487.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.1539, allocations: 65.8 kB / 487.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0072/0.1611, allocations: 10.91 MB / 498.4 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.1616, allocations: 0.7994 MB / 499.2 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000229/0.1618, allocations: 47.25 kB / 499.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.162, allocations: 111.4 kB / 499.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.162, allocations: 0 / 499.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.1821, allocations: 5.944 MB / 0.4935 GB, free: 10.87 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.1823, allocations: 185.7 kB / 0.4937 GB, free: 10.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/1.986, allocations: 0 / 0.4937 GB, free: 10.63 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat