Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001902/0.001902, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008947/0.0008948, allocations: 85.62 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.504e-05/3.505e-05, allocations: 0 / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1348, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4159/0.5508, allocations: 79.15 MB / 481.3 MB, free: 10.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.551, allocations: 71.64 kB / 481.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01012/0.5611, allocations: 4.243 MB / 485.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5612, allocations: 0 / 485.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.5612, allocations: 7.984 kB / 485.6 MB, free: 6.801 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0005367/0.5618, allocations: 485.1 kB / 486.1 MB, free: 6.305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.5618, allocations: 8.031 kB / 486.1 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.215e-05/0.5619, allocations: 61.86 kB / 486.1 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.562, allocations: 37.08 kB / 486.2 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.5623, allocations: 223.7 kB / 486.4 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.5623, allocations: 16.31 kB / 486.4 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.988e-05/0.5624, allocations: 31.3 kB / 486.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.5627, allocations: 180.5 kB / 486.6 MB, free: 5.801 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.5627, allocations: 7.984 kB / 486.6 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.5627, allocations: 8.219 kB / 486.6 MB, free: 5.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.5628, allocations: 4 kB / 486.6 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001948/0.563, allocations: 132 kB / 486.8 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007593/0.5637, allocations: 0.6218 MB / 487.4 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.564, allocations: 161.1 kB / 487.5 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.5641, allocations: 105 kB / 487.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.5641, allocations: 2.344 kB / 487.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.5642, allocations: 41.78 kB / 487.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.5642, allocations: 0 / 487.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001442/0.5656, allocations: 0.9785 MB / 488.7 MB, free: 3.996 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.5656, allocations: 55.41 kB / 488.7 MB, free: 3.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.5658, allocations: 168.2 kB / 488.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.5658, allocations: 29.02 kB / 488.9 MB, free: 3.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.5659, allocations: 137.7 kB / 489 MB, free: 3.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.918e-05/0.5659, allocations: 112.6 kB / 489.2 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.039e-05/0.566, allocations: 3.625 kB / 489.2 MB, free: 3.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.09e-05/0.5661, allocations: 340.5 kB / 489.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.5662, allocations: 63.81 kB / 489.6 MB, free: 3.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.5663, allocations: 96.41 kB / 489.6 MB, free: 3.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.5664, allocations: 77.56 kB / 489.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.5664, allocations: 0 / 489.7 MB, free: 3.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004157/0.5669, allocations: 283.7 kB / 490 MB, free: 2.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.5669, allocations: 15.94 kB / 490 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.5669, allocations: 0 / 490 MB, free: 2.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.5671, allocations: 34.97 kB / 490 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.5674, allocations: 63.59 kB / 490.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.5686, allocations: 1.562 MB / 491.7 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.5687, allocations: 15.3 kB / 491.7 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.5688, allocations: 8 kB / 491.7 MB, free: 1.145 MB / 346.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 8.979e-05/0.5689, allocations: 125.6 kB / 491.8 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.15e-05/0.5689, allocations: 19.81 kB / 491.8 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.569, allocations: 32.17 kB / 491.9 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.569, allocations: 4 kB / 491.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.569, allocations: 0 / 491.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.569, allocations: 4 kB / 491.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009004/0.5699, allocations: 0.764 MB / 492.6 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.5699, allocations: 0 / 492.6 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.5702, allocations: 67.94 kB / 492.7 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.5703, allocations: 32.83 kB / 492.7 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.5703, allocations: 12 kB / 492.8 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.5716, allocations: 1.382 MB / 494.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5716, allocations: 0 / 494.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.5723, allocations: 0.4912 MB / 494.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.5724, allocations: 96.88 kB / 494.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.5724, allocations: 8 kB / 494.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.5726, allocations: 13.41 kB / 494.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.5726, allocations: 21.38 kB / 494.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.5727, allocations: 16 kB / 494.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.5728, allocations: 131.5 kB / 494.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5728, allocations: 0 / 494.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003869/0.5732, allocations: 67.94 kB / 495 MB, free: 13.61 MB / 362.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.001132/0.5743, allocations: 1.238 MB / 496.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006179/0.575, allocations: 334.5 kB / 496.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.575, allocations: 0 / 496.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003171/0.5753, allocations: 238.5 kB / 496.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.5756, allocations: 33.84 kB / 496.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.5769, allocations: 0.6496 MB / 497.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.5773, allocations: 0.7641 MB / 498.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.976e-05/0.5774, allocations: 26.05 kB / 498.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.5775, allocations: 67.42 kB / 498.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.5775, allocations: 0 / 498.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.5962, allocations: 4.679 MB / 0.4912 GB, free: 5.715 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.5965, allocations: 161.6 kB / 0.4914 GB, free: 5.496 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.627, allocations: 6.375 kB / 0.4914 GB, free: 5.492 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat