Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001755/0.001755, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 105.5 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4078/0.4078, allocations: 45.24 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002986/0.0002986, allocations: 4 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4163/0.4167, allocations: 63.24 MB / 0.5193 GB, free: 43.48 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.5396, allocations: 89.11 MB / 0.6063 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.5399, allocations: 73.41 kB / 0.6064 GB, free: 468 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01695/0.5569, allocations: 6.352 MB / 0.6126 GB, free: 10.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.787e-06/0.5569, allocations: 0 / 0.6126 GB, free: 10.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.557, allocations: 12 kB / 0.6126 GB, free: 10.11 MB / 426.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.0009011/0.5579, allocations: 0.5775 MB / 0.6131 GB, free: 9.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.5579, allocations: 12.03 kB / 0.6132 GB, free: 9.469 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.561e-05/0.5581, allocations: 78.45 kB / 0.6132 GB, free: 9.383 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002577/0.5583, allocations: 67.47 kB / 0.6133 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.5586, allocations: 251.3 kB / 0.6135 GB, free: 9.027 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.5587, allocations: 36.94 kB / 0.6136 GB, free: 8.992 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.62e-05/0.5587, allocations: 51.83 kB / 0.6136 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.5594, allocations: 386.2 kB / 0.614 GB, free: 8.531 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.5594, allocations: 7.984 kB / 0.614 GB, free: 8.523 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.5594, allocations: 15.95 kB / 0.614 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.5595, allocations: 12 kB / 0.614 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000442/0.5599, allocations: 223.7 kB / 0.6142 GB, free: 8.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.5621, allocations: 1.728 MB / 0.6159 GB, free: 6.445 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004429/0.5626, allocations: 262.3 kB / 0.6162 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.5626, allocations: 8 kB / 0.6162 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.5627, allocations: 42.62 kB / 0.6162 GB, free: 6.066 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.402e-06/0.5627, allocations: 0 / 0.6162 GB, free: 6.066 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007504/0.5634, allocations: 273.6 kB / 0.6165 GB, free: 5.793 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/0.5636, allocations: 217.5 kB / 0.6167 GB, free: 5.531 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.5639, allocations: 242 kB / 0.6169 GB, free: 5.289 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.5639, allocations: 29.7 kB / 0.6169 GB, free: 5.254 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.5641, allocations: 239.6 kB / 0.6172 GB, free: 5.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.76e-05/0.5642, allocations: 118.4 kB / 0.6173 GB, free: 4.898 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.5642, allocations: 8 kB / 0.6173 GB, free: 4.891 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.5644, allocations: 350.8 kB / 0.6176 GB, free: 4.539 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.5646, allocations: 101.2 kB / 0.6177 GB, free: 4.441 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004814/0.5651, allocations: 421.2 kB / 0.6181 GB, free: 3.871 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.5654, allocations: 175.8 kB / 0.6183 GB, free: 3.699 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.5654, allocations: 4 kB / 0.6183 GB, free: 3.695 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008373/0.5663, allocations: 0.5241 MB / 0.6188 GB, free: 3.164 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.5663, allocations: 8 kB / 0.6188 GB, free: 3.156 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.567e-05/0.5664, allocations: 12.88 kB / 0.6188 GB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.283e-05/0.5664, allocations: 16 kB / 0.6188 GB, free: 3.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.5669, allocations: 155.7 kB / 0.619 GB, free: 2.977 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/0.5669, allocations: 23.92 kB / 0.619 GB, free: 2.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.5672, allocations: 71.28 kB / 0.6191 GB, free: 2.883 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.5673, allocations: 32 kB / 0.6191 GB, free: 2.852 MB / 426.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 () * 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.0001988/0.5675, allocations: 181.5 kB / 0.6193 GB, free: 2.664 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.5676, allocations: 31.7 kB / 0.6193 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.5677, allocations: 41.72 kB / 0.6194 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.5677, allocations: 7.938 kB / 0.6194 GB, free: 2.586 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.5677, allocations: 4.5 kB / 0.6194 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5677, allocations: 0 / 0.6194 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.569, allocations: 0.6475 MB / 0.62 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.569, allocations: 4 kB / 0.62 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.5694, allocations: 87.95 kB / 0.6201 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.5694, allocations: 4 kB / 0.6201 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.5695, allocations: 19.92 kB / 0.6201 GB, free: 1.758 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5695, allocations: 3.938 kB / 0.6201 GB, free: 1.754 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.5695, allocations: 4 kB / 0.6201 GB, free: 1.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007901/0.5703, allocations: 0.9367 MB / 0.621 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.41e-05/0.5704, allocations: 112.8 kB / 0.6211 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.032e-05/0.5704, allocations: 19.94 kB / 0.6212 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/0.5708, allocations: 11.98 kB / 0.6212 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.39e-05/0.5708, allocations: 19.97 kB / 0.6212 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.5709, allocations: 12 kB / 0.6212 GB, free: 0.543 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001643/0.571, allocations: 182 kB / 0.6214 GB, free: 376 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.571, allocations: 4 kB / 0.6214 GB, free: 372 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.000708/0.5718, allocations: 99.84 kB / 0.6215 GB, free: 272 kB / 426.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 () * 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.001348/0.5731, allocations: 2.034 MB / 0.6235 GB, free: 14.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005496/0.5737, allocations: 298.2 kB / 0.6237 GB, free: 13.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.5737, allocations: 0 / 0.6237 GB, free: 13.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.5739, allocations: 92.89 kB / 0.6238 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006591/0.5745, allocations: 68.38 kB / 0.6239 GB, free: 13.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007903/0.5825, allocations: 10.9 MB / 0.6345 GB, free: 2.516 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.5829, allocations: 0.8072 MB / 0.6353 GB, free: 1.684 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002235/0.5832, allocations: 47.25 kB / 0.6354 GB, free: 1.637 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.5833, allocations: 115.4 kB / 0.6355 GB, free: 1.523 MB / 442.7 MB Notification: Performance of SimCode: time 3.507e-06/0.5833, allocations: 0 / 0.6355 GB, free: 1.523 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.6018, allocations: 5.951 MB / 0.6413 GB, free: 11.77 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/0.6021, allocations: 187.4 kB / 0.6415 GB, free: 11.52 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.171/2.773, allocations: 7.812 kB / 0.6415 GB, free: 11.52 MB / 458.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat