Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",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.001539/0.001539, allocations: 186.1 kB / 16.4 MB, free: 5.719 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.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001143/0.001143, allocations: 91.02 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005239/0.000524, allocations: 8 kB / 327 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3476, allocations: 47.58 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1364/0.484, allocations: 81.56 MB / 456.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.4844, allocations: 79.97 kB / 456.3 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04774/0.5322, allocations: 11.72 MB / 468 MB, free: 3.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5322, allocations: 0 / 468 MB, free: 3.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.155e-05/0.5323, allocations: 27.98 kB / 468 MB, free: 3.242 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002085/0.5344, allocations: 0.8734 MB / 468.9 MB, free: 2.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.5345, allocations: 12.03 kB / 468.9 MB, free: 2.305 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002529/0.5348, allocations: 131.2 kB / 469 MB, free: 2.168 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.535, allocations: 90.92 kB / 469.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.5361, allocations: 0.5014 MB / 469.6 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.369e-05/0.5362, allocations: 62 kB / 469.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.5364, allocations: 87.91 kB / 469.8 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002254/0.5387, allocations: 0.7888 MB / 470.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.744e-05/0.5388, allocations: 7.906 kB / 470.6 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.5389, allocations: 39.94 kB / 470.6 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.539, allocations: 23.95 kB / 470.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.5407, allocations: 0.4918 MB / 471.1 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005586/0.5463, allocations: 2.884 MB / 474 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008705/0.5472, allocations: 235.8 kB / 474.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000301/0.5476, allocations: 247.3 kB / 474.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.5476, allocations: 38.56 kB / 474.5 MB, free: 12.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 3.106e-06/0.5476, allocations: 0 / 474.5 MB, free: 12.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.003716/0.5514, allocations: 1.261 MB / 475.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.5515, allocations: 59.39 kB / 475.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.5519, allocations: 263.6 kB / 476.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.552, allocations: 29.7 kB / 476.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003394/0.5523, allocations: 452.9 kB / 476.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.5525, allocations: 138 kB / 476.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.5525, allocations: 12 kB / 476.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.5527, allocations: 330.8 kB / 477 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.5531, allocations: 105.1 kB / 477.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004881/0.5536, allocations: 250.7 kB / 477.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.5541, allocations: 159.4 kB / 477.5 MB, free: 9.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.5541, allocations: 0 / 477.5 MB, free: 9.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001172/0.5553, allocations: 433.6 kB / 477.9 MB, free: 8.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.5553, allocations: 4 kB / 478 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.5554, allocations: 4.594 kB / 478 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.5557, allocations: 48.83 kB / 478 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.5564, allocations: 111.8 kB / 478.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005422/0.5569, allocations: 0.5523 MB / 478.7 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.5573, allocations: 16 kB / 478.7 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-05/0.5574, allocations: 20 kB / 478.7 MB, free: 7.973 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000522/0.5579, allocations: 228.6 kB / 478.9 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.974e-05/0.558, allocations: 35.53 kB / 479 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.559, allocations: 330.1 kB / 479.3 MB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.5591, allocations: 4 kB / 479.3 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5591, allocations: 7.953 kB / 479.3 MB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.5591, allocations: 7.984 kB / 479.3 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.5615, allocations: 1.022 MB / 480.3 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.5616, allocations: 0 / 480.3 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007462/0.5624, allocations: 83.84 kB / 480.4 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.5626, allocations: 32.83 kB / 480.4 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/0.5627, allocations: 12 kB / 480.4 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005915/0.5633, allocations: 0.5448 MB / 481 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/0.5633, allocations: 11.95 kB / 481 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.5647, allocations: 0.6034 MB / 481.6 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.5649, allocations: 104.7 kB / 481.7 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.269e-05/0.565, allocations: 11.98 kB / 481.7 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.5652, allocations: 19.98 kB / 481.7 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.589e-05/0.5653, allocations: 23.92 kB / 481.8 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.5654, allocations: 16 kB / 481.8 MB, free: 4.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000356/0.5658, allocations: 207.1 kB / 482 MB, free: 4.477 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5658, allocations: 0 / 482 MB, free: 4.477 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007399/0.5665, allocations: 120 kB / 482.1 MB, free: 4.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001955/0.5685, allocations: 1.518 MB / 483.6 MB, free: 2.781 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.5695, allocations: 316.8 kB / 483.9 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.5696, allocations: 0 / 483.9 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.57, allocations: 137.3 kB / 484.1 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000653/0.5707, allocations: 61.81 kB / 484.1 MB, free: 2.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009311/0.58, allocations: 6.297 MB / 490.4 MB, free: 11.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007794/0.5809, allocations: 0.9366 MB / 491.4 MB, free: 10.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004972/0.5814, allocations: 243.3 kB / 491.6 MB, free: 10.63 MB / 378.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5814, allocations: 3.938 kB / 491.6 MB, free: 10.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.105/3.687, allocations: 12.32 MB / 0.4921 GB, free: 106.6 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat