Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_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.001453/0.001453, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 86.2 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.609e-05/1.613e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 47.59 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4137/0.5261, allocations: 77.09 MB / 440.2 MB, free: 2.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.5265, allocations: 69.34 kB / 440.3 MB, free: 2.285 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01105/0.5375, allocations: 4.006 MB / 444.3 MB, free: 15 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5376, allocations: 0 / 444.3 MB, free: 15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.5376, allocations: 4 kB / 444.3 MB, free: 15 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.0006368/0.5383, allocations: 483.8 kB / 444.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5383, allocations: 16.64 kB / 444.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.5384, allocations: 23.72 kB / 444.8 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.5387, allocations: 237.5 kB / 445.1 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.5387, allocations: 4 kB / 445.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.5388, allocations: 19.95 kB / 445.1 MB, free: 14.17 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002303/0.539, allocations: 107.3 kB / 445.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.5393, allocations: 152.3 kB / 445.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.5393, allocations: 6.062 kB / 445.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.5393, allocations: 0 / 445.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.5394, allocations: 8 kB / 445.4 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008906/0.5403, allocations: 0.5667 MB / 445.9 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.5405, allocations: 163.3 kB / 446.1 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.5407, allocations: 83.55 kB / 446.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.5407, allocations: 4 kB / 446.2 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.5407, allocations: 33.31 kB / 446.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.5407, allocations: 0 / 446.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001628/0.5424, allocations: 0.9092 MB / 447.1 MB, free: 12.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.5424, allocations: 55.41 kB / 447.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.5426, allocations: 136.4 kB / 447.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.5426, allocations: 25.7 kB / 447.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.332e-05/0.5427, allocations: 141.7 kB / 447.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.506e-05/0.5428, allocations: 115.8 kB / 447.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.5428, allocations: 0 / 447.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.543, allocations: 328.3 kB / 447.9 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.5431, allocations: 64.27 kB / 448 MB, free: 11.56 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.5433, allocations: 86.53 kB / 448 MB, free: 11.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.5434, allocations: 72.84 kB / 448.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.5434, allocations: 4 kB / 448.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004171/0.5438, allocations: 256.3 kB / 448.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5439, allocations: 4 kB / 448.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5439, allocations: 0 / 448.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.5441, allocations: 44.66 kB / 448.4 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.5443, allocations: 59.86 kB / 448.5 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.5457, allocations: 1.502 MB / 450 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.5459, allocations: 8.094 kB / 450 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.5459, allocations: 8 kB / 450 MB, free: 9.637 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.0001116/0.546, allocations: 104.9 kB / 450.1 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003773/0.5464, allocations: 242.1 kB / 450.3 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.104e-05/0.5464, allocations: 15.81 kB / 450.3 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.876e-05/0.5465, allocations: 25.09 kB / 450.4 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5465, allocations: 11.94 kB / 450.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.5465, allocations: 3.953 kB / 450.4 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.5465, allocations: 3.984 kB / 450.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009855/0.5475, allocations: 0.7036 MB / 451.1 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.5475, allocations: 0 / 451.1 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.5478, allocations: 63.72 kB / 451.2 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.5479, allocations: 36.31 kB / 451.2 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.548, allocations: 4 kB / 451.2 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.5491, allocations: 1.325 MB / 452.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.5491, allocations: 4.031 kB / 452.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.5497, allocations: 476.8 kB / 453 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.5498, allocations: 92.92 kB / 453.1 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.5498, allocations: 4 kB / 453.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.5499, allocations: 4 kB / 453.1 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.55, allocations: 18.47 kB / 453.1 MB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.55, allocations: 11.38 kB / 453.1 MB, free: 6.613 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.155e-05/0.5501, allocations: 110.5 kB / 453.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5501, allocations: 0 / 453.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003671/0.5505, allocations: 56 kB / 453.3 MB, free: 6.461 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.0009966/0.5515, allocations: 1.211 MB / 454.5 MB, free: 5.293 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005313/0.5521, allocations: 308.6 kB / 454.8 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5521, allocations: 0 / 454.8 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.5524, allocations: 221.6 kB / 455 MB, free: 4.844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.5527, allocations: 29.08 kB / 455 MB, free: 4.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.5542, allocations: 0.6177 MB / 455.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.5548, allocations: 0.7564 MB / 456.4 MB, free: 3.414 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000112/0.5549, allocations: 30.05 kB / 456.4 MB, free: 3.383 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.555, allocations: 65.48 kB / 456.5 MB, free: 3.359 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.555, allocations: 0 / 456.5 MB, free: 3.359 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.5837, allocations: 4.095 MB / 460.6 MB, free: 15.27 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.584, allocations: 129.9 kB / 460.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.466, allocations: 4 kB / 460.7 MB, free: 15.08 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat