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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 94.17 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2098/0.2098, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.227e-05/4.243e-05, allocations: 4 kB / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3934/0.5079, allocations: 87.98 MB / 0.5877 GB, free: 1.258 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.5082, allocations: 71.97 kB / 0.5878 GB, free: 1.188 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01681/0.525, allocations: 6.276 MB / 0.5939 GB, free: 10.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.525, allocations: 0 / 0.5939 GB, free: 10.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.5251, allocations: 8 kB / 0.5939 GB, free: 10.9 MB / 410.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.0007429/0.5258, allocations: 0.5571 MB / 0.5945 GB, free: 10.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.5259, allocations: 12.03 kB / 0.5945 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.467e-05/0.526, allocations: 74.53 kB / 0.5945 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.526, allocations: 43.52 kB / 0.5946 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.5263, allocations: 263.3 kB / 0.5948 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.5264, allocations: 24.78 kB / 0.5949 GB, free: 9.832 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/0.5264, allocations: 43.91 kB / 0.5949 GB, free: 9.789 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005269/0.527, allocations: 367.4 kB / 0.5953 GB, free: 9.398 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.527, allocations: 15.84 kB / 0.5953 GB, free: 9.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.527, allocations: 16 kB / 0.5953 GB, free: 9.367 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.527, allocations: 8 kB / 0.5953 GB, free: 9.359 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.5274, allocations: 195.8 kB / 0.5955 GB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.5296, allocations: 1.711 MB / 0.5971 GB, free: 7.352 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004003/0.53, allocations: 242.3 kB / 0.5974 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.5302, allocations: 88.92 kB / 0.5975 GB, free: 6.945 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.5302, allocations: 15.98 kB / 0.5975 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.5303, allocations: 42.5 kB / 0.5975 GB, free: 6.879 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 2.054e-06/0.5303, allocations: 0 / 0.5975 GB, free: 6.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005206/0.5308, allocations: 181.1 kB / 0.5977 GB, free: 6.695 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/0.531, allocations: 221.6 kB / 0.5979 GB, free: 6.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.5313, allocations: 235.3 kB / 0.5981 GB, free: 6.191 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.5313, allocations: 33.7 kB / 0.5982 GB, free: 6.152 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.5315, allocations: 239.2 kB / 0.5984 GB, free: 5.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.5316, allocations: 114.5 kB / 0.5985 GB, free: 5.797 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.726e-05/0.5316, allocations: 12 kB / 0.5985 GB, free: 5.785 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5318, allocations: 346.8 kB / 0.5988 GB, free: 5.438 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.532, allocations: 81.56 kB / 0.5989 GB, free: 5.355 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.5324, allocations: 414.2 kB / 0.5993 GB, free: 4.789 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.5326, allocations: 159.8 kB / 0.5995 GB, free: 4.633 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.5326, allocations: 4 kB / 0.5995 GB, free: 4.629 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007362/0.5334, allocations: 0.5053 MB / 0.6 GB, free: 4.117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.5334, allocations: 12.03 kB / 0.6 GB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5334, allocations: 12 kB / 0.6 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.024e-05/0.5335, allocations: 20 kB / 0.6 GB, free: 4.074 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/0.5339, allocations: 143.8 kB / 0.6001 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/0.534, allocations: 23.92 kB / 0.6002 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.5343, allocations: 67.5 kB / 0.6002 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.5343, allocations: 35.94 kB / 0.6003 GB, free: 3.809 MB / 410.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.0001305/0.5344, allocations: 156.7 kB / 0.6004 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.5346, allocations: 35.58 kB / 0.6004 GB, free: 3.613 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.35e-05/0.5347, allocations: 41.78 kB / 0.6005 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.5347, allocations: 4 kB / 0.6005 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.5347, allocations: 4 kB / 0.6005 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5347, allocations: 0 / 0.6005 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.5359, allocations: 0.6436 MB / 0.6011 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.5359, allocations: 4 kB / 0.6011 GB, free: 2.852 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.5363, allocations: 91.89 kB / 0.6012 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.5363, allocations: 0 / 0.6012 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.5364, allocations: 15.98 kB / 0.6012 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.5364, allocations: 7.938 kB / 0.6012 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5364, allocations: 0 / 0.6012 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006675/0.5371, allocations: 0.9019 MB / 0.6021 GB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.097e-05/0.5372, allocations: 105 kB / 0.6022 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/0.5372, allocations: 8 kB / 0.6022 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.5376, allocations: 16 kB / 0.6022 GB, free: 1.613 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.5376, allocations: 23.92 kB / 0.6023 GB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.5377, allocations: 11.98 kB / 0.6023 GB, free: 1.578 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001631/0.5378, allocations: 179.1 kB / 0.6024 GB, free: 1.406 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5378, allocations: 0 / 0.6024 GB, free: 1.406 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006552/0.5385, allocations: 103.7 kB / 0.6025 GB, free: 1.305 MB / 410.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.001145/0.5396, allocations: 1.992 MB / 0.6045 GB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004384/0.5401, allocations: 270.5 kB / 0.6047 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5401, allocations: 0 / 0.6047 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.5402, allocations: 84.11 kB / 0.6048 GB, free: 14.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000633/0.5409, allocations: 53.41 kB / 0.6049 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.5435, allocations: 1.638 MB / 0.6065 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.5439, allocations: 0.8072 MB / 0.6073 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.5441, allocations: 47.25 kB / 0.6073 GB, free: 12.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.5442, allocations: 115.4 kB / 0.6074 GB, free: 12.16 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5442, allocations: 0 / 0.6074 GB, free: 12.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.5639, allocations: 5.938 MB / 0.6132 GB, free: 6.352 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5642, allocations: 155.6 kB / 0.6134 GB, free: 6.129 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.295/2.859, allocations: 0 / 0.6134 GB, free: 6.129 MB / 426.7 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