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.001357/0.001357, allocations: 180.4 kB / 17.06 MB, free: 5.074 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.407/1.407, allocations: 223.2 MB / 241 MB, free: 10.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000976/0.0009761, allocations: 90.27 kB / 292.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3337/0.3337, allocations: 44.21 MB / 387.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003183, allocations: 8 kB / 460 MB, free: 1.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3164, allocations: 61.9 MB / 0.5096 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.4257, allocations: 88.05 MB / 0.5956 GB, free: 7.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.4259, allocations: 75.92 kB / 0.5957 GB, free: 7.031 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01646/0.4424, allocations: 6.261 MB / 0.6018 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4424, allocations: 0 / 0.6018 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.4424, allocations: 12 kB / 0.6018 GB, free: 0.7422 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.0008634/0.4433, allocations: 0.5813 MB / 0.6024 GB, free: 116 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.4434, allocations: 12.03 kB / 0.6024 GB, free: 104 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.901e-05/0.4435, allocations: 78.53 kB / 0.6025 GB, free: 16 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.426e-05/0.4436, allocations: 39.7 kB / 0.6025 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.4438, allocations: 259 kB / 0.6028 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.4439, allocations: 33 kB / 0.6028 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.4439, allocations: 43.98 kB / 0.6028 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005902/0.4445, allocations: 390.1 kB / 0.6032 GB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.4446, allocations: 11.89 kB / 0.6032 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.4446, allocations: 16 kB / 0.6032 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.4446, allocations: 8 kB / 0.6032 GB, free: 15.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004234/0.4451, allocations: 229 kB / 0.6035 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.4471, allocations: 1.721 MB / 0.6051 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004115/0.4475, allocations: 266.3 kB / 0.6054 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.4476, allocations: 8 kB / 0.6054 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.4476, allocations: 42.62 kB / 0.6054 GB, free: 12.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.703e-06/0.4476, allocations: 0 / 0.6054 GB, free: 12.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006278/0.4483, allocations: 269.7 kB / 0.6057 GB, free: 12.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.553e-05/0.4484, allocations: 213.6 kB / 0.6059 GB, free: 12.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.4486, allocations: 242 kB / 0.6061 GB, free: 11.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.4486, allocations: 29.7 kB / 0.6062 GB, free: 11.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.4488, allocations: 243.4 kB / 0.6064 GB, free: 11.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.4489, allocations: 118.4 kB / 0.6065 GB, free: 11.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.571e-05/0.4489, allocations: 8 kB / 0.6065 GB, free: 11.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4491, allocations: 346.8 kB / 0.6068 GB, free: 11.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.4493, allocations: 101.2 kB / 0.6069 GB, free: 11.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.4496, allocations: 425.2 kB / 0.6073 GB, free: 10.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.4499, allocations: 179.8 kB / 0.6075 GB, free: 10.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4499, allocations: 0 / 0.6075 GB, free: 10.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007835/0.4507, allocations: 0.5318 MB / 0.608 GB, free: 9.809 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4508, allocations: 8 kB / 0.608 GB, free: 9.801 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.4508, allocations: 12.91 kB / 0.6081 GB, free: 9.789 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.505e-05/0.4508, allocations: 20 kB / 0.6081 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000427/0.4512, allocations: 155.7 kB / 0.6082 GB, free: 9.617 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.63e-05/0.4513, allocations: 27.91 kB / 0.6083 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.4516, allocations: 71.28 kB / 0.6083 GB, free: 9.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.4516, allocations: 28 kB / 0.6083 GB, free: 9.492 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.0001614/0.4518, allocations: 174.1 kB / 0.6085 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.4519, allocations: 35.66 kB / 0.6085 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.948e-05/0.452, allocations: 37.78 kB / 0.6086 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.452, allocations: 4 kB / 0.6086 GB, free: 9.238 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.452, allocations: 4 kB / 0.6086 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4521, allocations: 0.5 kB / 0.6086 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.4532, allocations: 0.6552 MB / 0.6092 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4532, allocations: 4 kB / 0.6092 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00043/0.4537, allocations: 91.95 kB / 0.6093 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4537, allocations: 0 / 0.6093 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.4537, allocations: 15.98 kB / 0.6093 GB, free: 8.406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.4537, allocations: 7.938 kB / 0.6093 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4537, allocations: 0 / 0.6093 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007513/0.4545, allocations: 0.9454 MB / 0.6103 GB, free: 7.375 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.039e-05/0.4546, allocations: 104.8 kB / 0.6104 GB, free: 7.254 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.4546, allocations: 12 kB / 0.6104 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.455, allocations: 16.17 kB / 0.6104 GB, free: 7.227 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.782e-05/0.4551, allocations: 27.86 kB / 0.6104 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.4551, allocations: 11.98 kB / 0.6104 GB, free: 7.188 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001537/0.4552, allocations: 182 kB / 0.6106 GB, free: 7.012 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4552, allocations: 4 kB / 0.6106 GB, free: 7.008 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006791/0.4559, allocations: 103.8 kB / 0.6107 GB, free: 6.906 MB / 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.001191/0.4571, allocations: 2.026 MB / 0.6127 GB, free: 4.812 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004786/0.4576, allocations: 293.5 kB / 0.613 GB, free: 4.527 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4576, allocations: 3.938 kB / 0.613 GB, free: 4.523 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.4578, allocations: 92.95 kB / 0.6131 GB, free: 4.434 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.4584, allocations: 58.97 kB / 0.6131 GB, free: 4.379 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007021/0.4655, allocations: 10.91 MB / 0.6238 GB, free: 9.164 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.4658, allocations: 0.8149 MB / 0.6246 GB, free: 8.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.466, allocations: 47.25 kB / 0.6246 GB, free: 8.273 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.4662, allocations: 111.4 kB / 0.6247 GB, free: 8.164 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.4662, allocations: 4 kB / 0.6247 GB, free: 8.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.4831, allocations: 5.958 MB / 0.6305 GB, free: 2.363 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.4833, allocations: 179.2 kB / 0.6307 GB, free: 2.129 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.558, allocations: 0 / 0.6307 GB, free: 2.129 MB / 442.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