Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.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) 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(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First",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.00233/0.002329, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.258/2.258, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001582/0.001582, allocations: 82.72 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.897e-05/3.91e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5414, allocations: 77.49 MB / 446.7 MB, free: 15.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5417, allocations: 69.27 kB / 446.7 MB, free: 15.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01735/0.5591, allocations: 4.043 MB / 450.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5592, allocations: 0 / 450.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.173e-05/0.5592, allocations: 4 kB / 450.8 MB, free: 12.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008971/0.5601, allocations: 477.7 kB / 451.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.5602, allocations: 8.797 kB / 451.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.5603, allocations: 65.22 kB / 451.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.639e-05/0.5604, allocations: 23.72 kB / 451.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.5607, allocations: 234.6 kB / 451.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.5608, allocations: 19.58 kB / 451.6 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.951e-05/0.5609, allocations: 23.31 kB / 451.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/0.5613, allocations: 177.7 kB / 451.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.5614, allocations: 2.188 kB / 451.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.5614, allocations: 11.12 kB / 451.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.5614, allocations: 4 kB / 451.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.5618, allocations: 128.7 kB / 451.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.5632, allocations: 0.6364 MB / 452.6 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004098/0.5637, allocations: 169.2 kB / 452.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.5639, allocations: 95.3 kB / 452.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.5639, allocations: 4 kB / 452.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.564, allocations: 34.59 kB / 452.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 4.248e-06/0.564, allocations: 0 / 452.9 MB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002963/0.567, allocations: 0.9817 MB / 453.9 MB, free: 9.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.5671, allocations: 51.41 kB / 453.9 MB, free: 9.387 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.5675, allocations: 154.8 kB / 454.1 MB, free: 9.242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.25e-05/0.5676, allocations: 31.58 kB / 454.1 MB, free: 9.211 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.5678, allocations: 207 kB / 454.3 MB, free: 9.023 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/0.568, allocations: 116.9 kB / 454.4 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.5681, allocations: 7.25 kB / 454.4 MB, free: 8.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002397/0.5684, allocations: 325.1 kB / 454.7 MB, free: 8.598 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.5687, allocations: 65.91 kB / 454.8 MB, free: 8.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.5691, allocations: 97.34 kB / 454.9 MB, free: 8.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.5695, allocations: 85.19 kB / 455 MB, free: 8.426 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.5695, allocations: 0 / 455 MB, free: 8.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001407/0.5709, allocations: 274.1 kB / 455.2 MB, free: 8.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.571, allocations: 11.95 kB / 455.2 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.571, allocations: 0 / 455.2 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004509/0.5715, allocations: 40.16 kB / 455.3 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006946/0.5722, allocations: 63.47 kB / 455.3 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003538/0.5758, allocations: 1.56 MB / 456.9 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.5762, allocations: 7.656 kB / 456.9 MB, free: 6.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.5763, allocations: 11.94 kB / 456.9 MB, free: 6.543 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.5765, allocations: 120.4 kB / 457 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.913e-05/0.5766, allocations: 19.72 kB / 457.1 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.5767, allocations: 33.7 kB / 457.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.5767, allocations: 4 kB / 457.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.5767, allocations: 8.062 kB / 457.1 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5768, allocations: 0 / 457.1 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.5796, allocations: 0.7753 MB / 457.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.5797, allocations: 0 / 457.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.5804, allocations: 63.78 kB / 457.9 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002804/0.5808, allocations: 32.7 kB / 458 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/0.5808, allocations: 7.625 kB / 458 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/0.5833, allocations: 1.382 MB / 459.4 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/0.5834, allocations: 3.984 kB / 459.4 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.5849, allocations: 499.5 kB / 459.9 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.5851, allocations: 100.8 kB / 460 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.381e-05/0.5852, allocations: 7.875 kB / 460 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/0.5856, allocations: 11.84 kB / 460 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.5857, allocations: 27.53 kB / 460 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.472e-05/0.5858, allocations: 8 kB / 460 MB, free: 3.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002351/0.5861, allocations: 131.1 kB / 460.1 MB, free: 3.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.5861, allocations: 0 / 460.1 MB, free: 3.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008787/0.587, allocations: 67.69 kB / 460.2 MB, free: 3.371 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00225/0.5892, allocations: 1.241 MB / 461.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.5907, allocations: 330.7 kB / 461.8 MB, free: 1.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5907, allocations: 3.938 kB / 461.8 MB, free: 1.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000784/0.5915, allocations: 234.7 kB / 462 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007613/0.5923, allocations: 32.5 kB / 462 MB, free: 1.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.5954, allocations: 0.6792 MB / 462.7 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006684/0.5961, allocations: 0.7642 MB / 463.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.5964, allocations: 75.34 kB / 463.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of SimCode: time 8.136e-06/0.5964, allocations: 4 kB / 463.6 MB, free: 15.87 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.845/3.442, allocations: 4.771 MB / 468.3 MB, free: 11.09 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat