Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001502/0.001502, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001803/0.001803, allocations: 97.89 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3742/0.3742, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.946e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4115, allocations: 58.85 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1624/0.574, allocations: 86.2 MB / 0.5502 GB, free: 13.01 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.5743, allocations: 75.47 kB / 0.5502 GB, free: 12.94 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02724/0.6016, allocations: 6.036 MB / 0.5561 GB, free: 6.883 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6017, allocations: 0 / 0.5561 GB, free: 6.883 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.396e-05/0.6017, allocations: 4 kB / 0.5561 GB, free: 6.879 MB / 395.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.001229/0.6029, allocations: 0.55 MB / 0.5567 GB, free: 6.285 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.603, allocations: 8.031 kB / 0.5567 GB, free: 6.277 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.6031, allocations: 47.48 kB / 0.5567 GB, free: 6.23 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.6036, allocations: 255.3 kB / 0.557 GB, free: 5.938 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.6036, allocations: 15.98 kB / 0.557 GB, free: 5.922 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.024e-05/0.6037, allocations: 31.91 kB / 0.557 GB, free: 5.891 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005193/0.6042, allocations: 165.5 kB / 0.5572 GB, free: 5.73 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007214/0.605, allocations: 309.8 kB / 0.5575 GB, free: 5.395 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.605, allocations: 11.86 kB / 0.5575 GB, free: 5.383 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.6051, allocations: 4 kB / 0.5575 GB, free: 5.379 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.6051, allocations: 15.98 kB / 0.5575 GB, free: 5.363 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003187/0.6083, allocations: 1.641 MB / 0.5591 GB, free: 3.629 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.6089, allocations: 234.6 kB / 0.5593 GB, free: 3.336 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.609, allocations: 86.14 kB / 0.5594 GB, free: 3.23 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.6091, allocations: 4 kB / 0.5594 GB, free: 3.227 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.009e-05/0.6091, allocations: 46.45 kB / 0.5595 GB, free: 3.172 MB / 395.1 MB Notification: Performance of pre-optimization done (n=26): time 3.417e-06/0.6091, allocations: 0 / 0.5595 GB, free: 3.172 MB / 395.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006058/0.6098, allocations: 169.2 kB / 0.5596 GB, free: 3 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.6099, allocations: 209.6 kB / 0.5598 GB, free: 2.746 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.6102, allocations: 213.5 kB / 0.56 GB, free: 2.531 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.6102, allocations: 25.7 kB / 0.5601 GB, free: 2.5 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.6104, allocations: 305.8 kB / 0.5603 GB, free: 2.199 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.6106, allocations: 110.5 kB / 0.5605 GB, free: 2.09 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-05/0.6106, allocations: 4.094 kB / 0.5605 GB, free: 2.086 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.6108, allocations: 334.8 kB / 0.5608 GB, free: 1.75 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.611, allocations: 73.56 kB / 0.5608 GB, free: 1.68 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004686/0.6115, allocations: 396.5 kB / 0.5612 GB, free: 1.129 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.6118, allocations: 143.8 kB / 0.5614 GB, free: 0.9883 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.6119, allocations: 4 kB / 0.5614 GB, free: 0.9844 MB / 395.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001044/0.6129, allocations: 417.2 kB / 0.5618 GB, free: 0.5703 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.613, allocations: 12 kB / 0.5618 GB, free: 0.5586 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.613, allocations: 16.39 kB / 0.5618 GB, free: 0.543 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.192e-05/0.6131, allocations: 19.95 kB / 0.5618 GB, free: 0.5234 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.6139, allocations: 152.4 kB / 0.562 GB, free: 384 kB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.782e-05/0.614, allocations: 27.92 kB / 0.562 GB, free: 356 kB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004864/0.6145, allocations: 55.31 kB / 0.562 GB, free: 300 kB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.6145, allocations: 32 kB / 0.5621 GB, free: 268 kB / 395.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 () * 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.0001727/0.6147, allocations: 132.7 kB / 0.5622 GB, free: 128 kB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005887/0.6153, allocations: 177.1 kB / 0.5624 GB, free: 15.95 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.6155, allocations: 31.77 kB / 0.5624 GB, free: 15.91 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.6156, allocations: 37.83 kB / 0.5624 GB, free: 15.88 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.6157, allocations: 4 kB / 0.5624 GB, free: 15.88 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.6157, allocations: 4 kB / 0.5624 GB, free: 15.87 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.6157, allocations: 0 / 0.5624 GB, free: 15.87 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.6175, allocations: 0.5819 MB / 0.563 GB, free: 15.24 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.6176, allocations: 4 kB / 0.563 GB, free: 15.23 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009241/0.6185, allocations: 99.94 kB / 0.5631 GB, free: 15.14 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.6186, allocations: 4 kB / 0.5631 GB, free: 15.13 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.633e-05/0.6186, allocations: 4 kB / 0.5631 GB, free: 15.13 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.995e-06/0.6186, allocations: 7.938 kB / 0.5631 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.6186, allocations: 3.938 kB / 0.5631 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008979/0.6195, allocations: 0.884 MB / 0.564 GB, free: 14.16 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.6197, allocations: 100.9 kB / 0.5641 GB, free: 14.04 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/0.6198, allocations: 8 kB / 0.5641 GB, free: 14.03 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005548/0.6203, allocations: 15.92 kB / 0.5641 GB, free: 14.02 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/0.6204, allocations: 23.94 kB / 0.5641 GB, free: 13.99 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.6204, allocations: 11.98 kB / 0.5641 GB, free: 13.98 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.6207, allocations: 158 kB / 0.5643 GB, free: 13.83 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6207, allocations: 0 / 0.5643 GB, free: 13.83 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001052/0.6217, allocations: 95.69 kB / 0.5644 GB, free: 13.73 MB / 411.1 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.001373/0.6231, allocations: 1.966 MB / 0.5663 GB, free: 11.7 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0006477/0.6238, allocations: 234.7 kB / 0.5665 GB, free: 11.48 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.6238, allocations: 0 / 0.5665 GB, free: 11.48 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.624, allocations: 67.86 kB / 0.5666 GB, free: 11.41 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000985/0.625, allocations: 55.12 kB / 0.5666 GB, free: 11.36 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.6292, allocations: 1.637 MB / 0.5682 GB, free: 9.652 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.6297, allocations: 0.7991 MB / 0.569 GB, free: 8.828 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000249/0.63, allocations: 119.4 kB / 0.5691 GB, free: 8.711 MB / 411.1 MB Notification: Performance of SimCode: time 9.22e-07/0.63, allocations: 3.938 kB / 0.5691 GB, free: 8.707 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.761/3.391, allocations: 5.423 MB / 0.5744 GB, free: 3.289 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat