Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.001505/0.001505, allocations: 178.2 kB / 8.363 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.141/2.141, 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.001124/0.001124, allocations: 86.83 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.2954/0.2954, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.976e-05/1.974e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4024, allocations: 58.85 MB / 477.2 MB, free: 5.289 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.5603, allocations: 83.89 MB / 0.5479 GB, free: 15.41 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5606, allocations: 67.47 kB / 0.548 GB, free: 15.35 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.008318/0.5689, allocations: 2.006 MB / 0.5499 GB, free: 13.35 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.569, allocations: 0 / 0.5499 GB, free: 13.35 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.569, allocations: 4 kB / 0.5499 GB, free: 13.35 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005201/0.5695, allocations: 371.2 kB / 0.5503 GB, free: 12.94 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.914e-05/0.5696, allocations: 12.02 kB / 0.5503 GB, free: 12.93 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.5697, allocations: 15.91 kB / 0.5503 GB, free: 12.91 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.5699, allocations: 178.8 kB / 0.5505 GB, free: 12.7 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.5699, allocations: 4 kB / 0.5505 GB, free: 12.69 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.57, allocations: 12 kB / 0.5505 GB, free: 12.68 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001808/0.5701, allocations: 44.45 kB / 0.5506 GB, free: 12.64 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.5704, allocations: 116.7 kB / 0.5507 GB, free: 12.51 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.5705, allocations: 4 kB / 0.5507 GB, free: 12.51 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.5705, allocations: 0 / 0.5507 GB, free: 12.51 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5705, allocations: 4 kB / 0.5507 GB, free: 12.5 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.5716, allocations: 0.5103 MB / 0.5512 GB, free: 11.95 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.5718, allocations: 85.17 kB / 0.5513 GB, free: 11.84 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.7e-05/0.5719, allocations: 21.72 kB / 0.5513 GB, free: 11.82 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.5719, allocations: 3.984 kB / 0.5513 GB, free: 11.81 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.5719, allocations: 38.56 kB / 0.5513 GB, free: 11.77 MB / 395.1 MB Notification: Performance of pre-optimization done (n=8): time 3.406e-06/0.572, allocations: 0 / 0.5513 GB, free: 11.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004258/0.5724, allocations: 95.42 kB / 0.5514 GB, free: 11.66 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.5725, allocations: 81.05 kB / 0.5515 GB, free: 11.56 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.5726, allocations: 112.8 kB / 0.5516 GB, free: 11.45 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.5726, allocations: 25.7 kB / 0.5516 GB, free: 11.41 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.5728, allocations: 186.2 kB / 0.5518 GB, free: 11.23 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.268e-05/0.5728, allocations: 31.55 kB / 0.5518 GB, free: 11.2 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.5728, allocations: 0 / 0.5518 GB, free: 11.2 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.573, allocations: 326.8 kB / 0.5521 GB, free: 10.87 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.528e-05/0.5731, allocations: 23.28 kB / 0.5522 GB, free: 10.85 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.5732, allocations: 72.59 kB / 0.5522 GB, free: 10.75 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.5733, allocations: 39.92 kB / 0.5523 GB, free: 10.71 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5733, allocations: 0 / 0.5523 GB, free: 10.71 MB / 395.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004754/0.5738, allocations: 147.2 kB / 0.5524 GB, free: 10.55 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.5739, allocations: 4 kB / 0.5524 GB, free: 10.55 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5739, allocations: 8 kB / 0.5524 GB, free: 10.54 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.5741, allocations: 37.66 kB / 0.5525 GB, free: 10.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.5743, allocations: 23.92 kB / 0.5525 GB, free: 10.48 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.5767, allocations: 2.426 MB / 0.5548 GB, free: 7.82 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.5769, allocations: 7.906 kB / 0.5549 GB, free: 7.812 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.5769, allocations: 4 kB / 0.5549 GB, free: 7.809 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.5771, allocations: 116.9 kB / 0.555 GB, free: 7.688 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003246/0.5774, allocations: 107.3 kB / 0.5551 GB, free: 7.57 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.5775, allocations: 7.906 kB / 0.5551 GB, free: 7.562 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.5775, allocations: 16.28 kB / 0.5551 GB, free: 7.543 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.5775, allocations: 0 / 0.5551 GB, free: 7.543 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.5775, allocations: 0 / 0.5551 GB, free: 7.543 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.54e-05/0.5776, allocations: 4 kB / 0.5551 GB, free: 7.539 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.5779, allocations: 170.1 kB / 0.5553 GB, free: 7.336 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.5779, allocations: 0 / 0.5553 GB, free: 7.336 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.5781, allocations: 19.98 kB / 0.5553 GB, free: 7.316 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001663/0.5783, allocations: 33.7 kB / 0.5553 GB, free: 7.277 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.5783, allocations: 4 kB / 0.5553 GB, free: 7.273 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.5805, allocations: 2.427 MB / 0.5577 GB, free: 4.617 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.5805, allocations: 256 / 0.5577 GB, free: 4.617 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.5809, allocations: 306 kB / 0.558 GB, free: 4.289 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.876e-05/0.581, allocations: 89.08 kB / 0.5581 GB, free: 4.184 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.581, allocations: 7.938 kB / 0.5581 GB, free: 4.176 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.5812, allocations: 0 / 0.5581 GB, free: 4.176 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.5813, allocations: 15.94 kB / 0.5581 GB, free: 4.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.5813, allocations: 4 kB / 0.5581 GB, free: 4.156 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.639e-05/0.5813, allocations: 87.28 kB / 0.5582 GB, free: 4.07 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5814, allocations: 0 / 0.5582 GB, free: 4.07 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0005317/0.5819, allocations: 35.84 kB / 0.5582 GB, free: 4.035 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008249/0.5827, allocations: 0.9048 MB / 0.5591 GB, free: 3.094 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0005065/0.5833, allocations: 275.4 kB / 0.5594 GB, free: 2.805 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5833, allocations: 0.5 kB / 0.5594 GB, free: 2.805 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.5837, allocations: 239.6 kB / 0.5596 GB, free: 2.551 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/0.5842, allocations: 23.92 kB / 0.5596 GB, free: 2.527 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.5855, allocations: 469.8 kB / 0.5601 GB, free: 2.023 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.5859, allocations: 0.7084 MB / 0.5607 GB, free: 1.289 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.728e-05/0.586, allocations: 31.42 kB / 0.5608 GB, free: 1.258 MB / 395.1 MB Notification: Performance of SimCode: time 9.02e-07/0.586, allocations: 0 / 0.5608 GB, free: 1.258 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.384, allocations: 2.878 MB / 0.5636 GB, free: 14.38 MB / 411.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat