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.002208/0.002208, allocations: 180 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.085/2.085, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001102/0.001101, allocations: 85.94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.409e-05/2.405e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3575, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.4853, allocations: 76.83 MB / 439.3 MB, free: 9.387 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4857, allocations: 73.61 kB / 439.3 MB, free: 9.316 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01738/0.5031, allocations: 4.004 MB / 443.3 MB, free: 5.355 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5031, allocations: 4 kB / 443.3 MB, free: 5.352 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.5032, allocations: 4 kB / 443.3 MB, free: 5.348 MB / 331.1 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.0008986/0.5041, allocations: 480.8 kB / 443.8 MB, free: 4.832 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.5041, allocations: 8.031 kB / 443.8 MB, free: 4.824 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.5042, allocations: 28.59 kB / 443.8 MB, free: 4.797 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.5046, allocations: 235.3 kB / 444.1 MB, free: 4.523 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.5047, allocations: 8.938 kB / 444.1 MB, free: 4.516 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.5047, allocations: 15.95 kB / 444.1 MB, free: 4.5 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000381/0.5051, allocations: 116.8 kB / 444.2 MB, free: 4.387 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/0.5056, allocations: 150.4 kB / 444.4 MB, free: 4.23 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.5056, allocations: 8 kB / 444.4 MB, free: 4.223 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.5056, allocations: 0 / 444.4 MB, free: 4.223 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.5057, allocations: 4 kB / 444.4 MB, free: 4.219 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.5071, allocations: 0.5728 MB / 444.9 MB, free: 3.609 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.5075, allocations: 154.5 kB / 445.1 MB, free: 3.449 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.5077, allocations: 86.39 kB / 445.2 MB, free: 3.363 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.5077, allocations: 0 / 445.2 MB, free: 3.363 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.5078, allocations: 46.41 kB / 445.2 MB, free: 3.309 MB / 331.1 MB Notification: Performance of pre-optimization done (n=24): time 2.555e-06/0.5078, allocations: 0 / 445.2 MB, free: 3.309 MB / 331.1 MB Notification: Performance of matching and sorting (n=32): time 0.0024/0.5102, allocations: 0.8962 MB / 446.1 MB, free: 2.316 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.5103, allocations: 55.41 kB / 446.2 MB, free: 2.25 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.5105, allocations: 146.7 kB / 446.3 MB, free: 2.098 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.5106, allocations: 25.7 kB / 446.3 MB, free: 2.066 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.5107, allocations: 202.8 kB / 446.5 MB, free: 1.867 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.5108, allocations: 110.3 kB / 446.7 MB, free: 1.758 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.414e-05/0.5109, allocations: 0 / 446.7 MB, free: 1.758 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.511, allocations: 319 kB / 447 MB, free: 1.438 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.5112, allocations: 61.97 kB / 447 MB, free: 1.379 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.5114, allocations: 94.78 kB / 447.1 MB, free: 1.277 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.5116, allocations: 73.33 kB / 447.2 MB, free: 1.207 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5117, allocations: 0 / 447.2 MB, free: 1.207 MB / 331.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000683/0.5124, allocations: 243.5 kB / 447.4 MB, free: 0.9609 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.5124, allocations: 4 kB / 447.4 MB, free: 0.957 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.5124, allocations: 4 kB / 447.4 MB, free: 0.9531 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.5127, allocations: 40.91 kB / 447.5 MB, free: 0.9102 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.5132, allocations: 59.86 kB / 447.5 MB, free: 0.8516 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.5152, allocations: 1.507 MB / 449 MB, free: 15.23 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.5155, allocations: 4.031 kB / 449 MB, free: 15.23 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.5156, allocations: 12 kB / 449.1 MB, free: 15.22 MB / 347.1 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.0001299/0.5157, allocations: 108.9 kB / 449.2 MB, free: 15.11 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006258/0.5163, allocations: 234.5 kB / 449.4 MB, free: 14.87 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.719e-05/0.5164, allocations: 23.72 kB / 449.4 MB, free: 14.84 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.161e-05/0.5165, allocations: 23.41 kB / 449.4 MB, free: 14.82 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5165, allocations: 4 kB / 449.4 MB, free: 14.82 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.5166, allocations: 7.953 kB / 449.4 MB, free: 14.81 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.5166, allocations: 3.984 kB / 449.5 MB, free: 14.81 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.5182, allocations: 0.6959 MB / 450.1 MB, free: 14.05 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.5182, allocations: 4 kB / 450.2 MB, free: 14.05 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.5187, allocations: 60.94 kB / 450.2 MB, free: 13.99 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.5189, allocations: 32.94 kB / 450.2 MB, free: 13.96 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.519, allocations: 7.984 kB / 450.3 MB, free: 13.95 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.5206, allocations: 1.332 MB / 451.6 MB, free: 12.5 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/0.5206, allocations: 0 / 451.6 MB, free: 12.5 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009729/0.5216, allocations: 466.5 kB / 452 MB, free: 12 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.5217, allocations: 100.8 kB / 452.1 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.5218, allocations: 0 / 452.1 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.5221, allocations: 4 kB / 452.1 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.056e-05/0.5221, allocations: 23.97 kB / 452.2 MB, free: 11.86 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.5222, allocations: 8 kB / 452.2 MB, free: 11.85 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.5223, allocations: 117.1 kB / 452.3 MB, free: 11.73 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5223, allocations: 0 / 452.3 MB, free: 11.73 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005791/0.5229, allocations: 56 kB / 452.3 MB, free: 11.68 MB / 347.1 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.001431/0.5244, allocations: 1.208 MB / 453.5 MB, free: 10.42 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008149/0.5252, allocations: 318.3 kB / 453.9 MB, free: 10.1 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5253, allocations: 4.062 kB / 453.9 MB, free: 10.1 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.5257, allocations: 213.7 kB / 454.1 MB, free: 9.879 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.5263, allocations: 30.05 kB / 454.1 MB, free: 9.855 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.5283, allocations: 0.6509 MB / 454.8 MB, free: 9.156 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.5287, allocations: 0.7642 MB / 455.5 MB, free: 8.363 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.5289, allocations: 75.41 kB / 455.6 MB, free: 8.289 MB / 347.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5289, allocations: 0 / 455.6 MB, free: 8.289 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.646/3.175, allocations: 4.677 MB / 460.3 MB, free: 3.648 MB / 347.1 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