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.001679/0.001679, allocations: 182.4 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.142/2.142, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00119/0.00119, allocations: 90.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.769e-05/3.781e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.448/0.5562, allocations: 81.46 MB / 450.6 MB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.5566, allocations: 70.16 kB / 450.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04843/0.605, allocations: 11.71 MB / 462.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6051, allocations: 0 / 462.4 MB, free: 1.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.931e-05/0.6052, allocations: 28.14 kB / 462.4 MB, free: 1.914 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001937/0.6072, allocations: 0.842 MB / 463.3 MB, free: 1.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.6072, allocations: 8.031 kB / 463.3 MB, free: 1.016 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002472/0.6075, allocations: 131.3 kB / 463.4 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.6077, allocations: 90.92 kB / 463.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.6089, allocations: 0.4897 MB / 464 MB, free: 264 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.4e-05/0.609, allocations: 70 kB / 464.1 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.6092, allocations: 91.84 kB / 464.2 MB, free: 104 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.6114, allocations: 0.7733 MB / 464.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.529e-05/0.6115, allocations: 4 kB / 464.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.6116, allocations: 36 kB / 465 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.6116, allocations: 27.89 kB / 465 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.6133, allocations: 467.8 kB / 465.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005962/0.6193, allocations: 2.895 MB / 468.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008383/0.6202, allocations: 215.3 kB / 468.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002675/0.6205, allocations: 92.86 kB / 468.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.6208, allocations: 251.3 kB / 468.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.6209, allocations: 38.55 kB / 468.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.517e-06/0.6209, allocations: 3.938 kB / 468.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=35): time 0.003336/0.6242, allocations: 1.15 MB / 470.1 MB, free: 9.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.6243, allocations: 59.41 kB / 470.2 MB, free: 9.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004813/0.6248, allocations: 262.9 kB / 470.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.6249, allocations: 29.7 kB / 470.4 MB, free: 9.445 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.6253, allocations: 449 kB / 470.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.6254, allocations: 130.1 kB / 471 MB, free: 8.875 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.6255, allocations: 12 kB / 471 MB, free: 8.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.6257, allocations: 330.8 kB / 471.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.626, allocations: 97.12 kB / 471.4 MB, free: 8.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004261/0.6264, allocations: 242.7 kB / 471.7 MB, free: 8.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.6268, allocations: 143.5 kB / 471.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.6268, allocations: 0 / 471.8 MB, free: 7.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001444/0.6283, allocations: 421.5 kB / 472.2 MB, free: 7.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.6284, allocations: 8 kB / 472.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.6284, allocations: 4.594 kB / 472.2 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004373/0.6289, allocations: 40.84 kB / 472.3 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009944/0.6299, allocations: 111.8 kB / 472.4 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007989/0.6307, allocations: 0.5523 MB / 472.9 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00058/0.6313, allocations: 20 kB / 473 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-05/0.6314, allocations: 27.98 kB / 473 MB, free: 6.785 MB / 346.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 () * 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.0002748/0.6317, allocations: 133.8 kB / 473.1 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.6319, allocations: 39.53 kB / 473.2 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.6333, allocations: 302.3 kB / 473.4 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.6333, allocations: 7.953 kB / 473.5 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.6333, allocations: 3.938 kB / 473.5 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.6333, allocations: 0 / 473.5 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/0.6368, allocations: 1.011 MB / 474.5 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.6369, allocations: 0 / 474.5 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.638, allocations: 79.89 kB / 474.5 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003256/0.6384, allocations: 37 kB / 474.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.816e-05/0.6385, allocations: 8 kB / 474.6 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006763/0.6392, allocations: 0.5523 MB / 475.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.6392, allocations: 3.953 kB / 475.1 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.641, allocations: 0.5954 MB / 475.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.6412, allocations: 108.6 kB / 475.8 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.6414, allocations: 8 kB / 475.9 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/0.6418, allocations: 11.98 kB / 475.9 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.6419, allocations: 27.92 kB / 475.9 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/0.642, allocations: 12 kB / 475.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005201/0.6425, allocations: 206.2 kB / 476.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.6425, allocations: 0 / 476.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001254/0.6438, allocations: 124.1 kB / 476.2 MB, free: 3.336 MB / 346.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 () * 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.002677/0.6465, allocations: 1.489 MB / 477.7 MB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.6479, allocations: 283.5 kB / 478 MB, free: 1.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.648, allocations: 0 / 478 MB, free: 1.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006488/0.6486, allocations: 141.3 kB / 478.1 MB, free: 1.371 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009963/0.6496, allocations: 61.73 kB / 478.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006263/0.6559, allocations: 1.532 MB / 479.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.6572, allocations: 0.9443 MB / 480.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006691/0.6579, allocations: 247.3 kB / 480.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6579, allocations: 4 kB / 480.9 MB, free: 14.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.878/3.536, allocations: 12.4 MB / 493.3 MB, free: 2.09 MB / 362.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