Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.0009931/0.000993, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009085/0.0009081, allocations: 90.09 kB / 261.8 MB, free: 1.68 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.2336/0.2336, allocations: 43.49 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.838e-05/1.84e-05, allocations: 4 kB / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 58.86 MB / 477.2 MB, free: 1.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4814/0.6215, allocations: 86.2 MB / 0.5502 GB, free: 8.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.6218, allocations: 72.28 kB / 0.5503 GB, free: 8.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01409/0.6359, allocations: 6.037 MB / 0.5562 GB, free: 3.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6359, allocations: 0 / 0.5562 GB, free: 3.594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.636, allocations: 4 kB / 0.5562 GB, free: 3.59 MB / 362.7 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.0006435/0.6366, allocations: 0.5569 MB / 0.5567 GB, free: 3.012 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.6367, allocations: 12.03 kB / 0.5567 GB, free: 3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.6368, allocations: 43.48 kB / 0.5568 GB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.637, allocations: 254.9 kB / 0.557 GB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.637, allocations: 12 kB / 0.557 GB, free: 2.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.6371, allocations: 35.34 kB / 0.5571 GB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000287/0.6374, allocations: 167.3 kB / 0.5572 GB, free: 2.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.6378, allocations: 309.6 kB / 0.5575 GB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.6378, allocations: 15.86 kB / 0.5575 GB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.6379, allocations: 0 / 0.5575 GB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.6379, allocations: 12 kB / 0.5575 GB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.6395, allocations: 1.641 MB / 0.5591 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.6398, allocations: 231.5 kB / 0.5594 GB, free: 448 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.886e-05/0.6399, allocations: 92.31 kB / 0.5594 GB, free: 348 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.6399, allocations: 4 kB / 0.5595 GB, free: 344 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.64, allocations: 49.62 kB / 0.5595 GB, free: 288 kB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.204e-06/0.64, allocations: 4 kB / 0.5595 GB, free: 284 kB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003617/0.6403, allocations: 175.2 kB / 0.5597 GB, free: 132 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.6404, allocations: 209.6 kB / 0.5599 GB, free: 15.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.6407, allocations: 211.2 kB / 0.5601 GB, free: 15.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.6407, allocations: 25.7 kB / 0.5601 GB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.6408, allocations: 240.1 kB / 0.5603 GB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.107e-05/0.6409, allocations: 122.5 kB / 0.5604 GB, free: 15.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.641, allocations: 0 / 0.5604 GB, free: 15.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.6411, allocations: 343.7 kB / 0.5608 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.6412, allocations: 72.69 kB / 0.5608 GB, free: 14.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/0.6416, allocations: 395.2 kB / 0.5612 GB, free: 14.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.6418, allocations: 141.4 kB / 0.5613 GB, free: 14.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.6418, allocations: 4 kB / 0.5614 GB, free: 14.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000608/0.6424, allocations: 432.3 kB / 0.5618 GB, free: 14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.6424, allocations: 11.98 kB / 0.5618 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.6425, allocations: 12 kB / 0.5618 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.412e-05/0.6425, allocations: 24.7 kB / 0.5618 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004406/0.6429, allocations: 147.2 kB / 0.562 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/0.643, allocations: 23.92 kB / 0.562 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.6432, allocations: 51.47 kB / 0.562 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.6433, allocations: 34.81 kB / 0.5621 GB, free: 13.71 MB / 378.7 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 () * 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.0001118/0.6434, allocations: 128.2 kB / 0.5622 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003212/0.6437, allocations: 172.2 kB / 0.5623 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.6439, allocations: 39.84 kB / 0.5624 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.37e-05/0.6439, allocations: 31.02 kB / 0.5624 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.6439, allocations: 7.938 kB / 0.5624 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.644, allocations: 4 kB / 0.5624 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.644, allocations: 0 / 0.5624 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.645, allocations: 0.586 MB / 0.563 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.645, allocations: 8.062 kB / 0.563 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.6454, allocations: 91.81 kB / 0.5631 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.6455, allocations: 4 kB / 0.5631 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.6455, allocations: 4.375 kB / 0.5631 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6455, allocations: 7.938 kB / 0.5631 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.6455, allocations: 8 kB / 0.5631 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005925/0.6461, allocations: 0.8754 MB / 0.564 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.78e-05/0.6462, allocations: 104.9 kB / 0.5641 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.6462, allocations: 7.375 kB / 0.5641 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.6466, allocations: 7.984 kB / 0.5641 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.6466, allocations: 30.94 kB / 0.5641 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.6467, allocations: 11.98 kB / 0.5641 GB, free: 11.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001266/0.6468, allocations: 153.8 kB / 0.5643 GB, free: 11.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6468, allocations: 0 / 0.5643 GB, free: 11.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006496/0.6474, allocations: 91.69 kB / 0.5644 GB, free: 11.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.00102/0.6485, allocations: 1.973 MB / 0.5663 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003447/0.6488, allocations: 232 kB / 0.5665 GB, free: 9.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.6488, allocations: 4 kB / 0.5665 GB, free: 9.227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.332e-05/0.6489, allocations: 71.17 kB / 0.5666 GB, free: 9.172 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006412/0.6496, allocations: 55.03 kB / 0.5666 GB, free: 9.129 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.6521, allocations: 1.608 MB / 0.5682 GB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.6526, allocations: 0.803 MB / 0.569 GB, free: 6.676 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.6527, allocations: 43.25 kB / 0.569 GB, free: 6.633 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.6529, allocations: 116.2 kB / 0.5691 GB, free: 6.594 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.6529, allocations: 0 / 0.5691 GB, free: 6.594 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.6781, allocations: 5.395 MB / 0.5744 GB, free: 1.211 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.6784, allocations: 148.9 kB / 0.5745 GB, free: 1.012 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.552, allocations: 3.375 kB / 0.5746 GB, free: 1.012 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat