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.001293/0.001293, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009651/0.0009651, allocations: 99.83 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.295e-05/2.297e-05, allocations: 0 / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3194/0.437, allocations: 78.49 MB / 473.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4373, allocations: 71.8 kB / 473.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.4478, allocations: 4.205 MB / 478 MB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.055e-06/0.4478, allocations: 0 / 478 MB, free: 10.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.4479, allocations: 11.94 kB / 478 MB, free: 10.66 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.000547/0.4484, allocations: 481.9 kB / 478.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.4485, allocations: 8.031 kB / 478.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.4486, allocations: 42.45 kB / 478.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.4489, allocations: 229.6 kB / 478.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.4489, allocations: 8 kB / 478.8 MB, free: 9.902 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.998e-05/0.449, allocations: 15.94 kB / 478.8 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002467/0.4493, allocations: 120 kB / 478.9 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.4495, allocations: 150.7 kB / 479.1 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.4496, allocations: 8 kB / 479.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.4496, allocations: 0 / 479.1 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4496, allocations: 4 kB / 479.1 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008173/0.4504, allocations: 0.5709 MB / 479.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.4506, allocations: 159 kB / 479.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.4508, allocations: 86.59 kB / 479.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.4508, allocations: 3.922 kB / 479.9 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.4508, allocations: 38.56 kB / 479.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.522e-06/0.4508, allocations: 0 / 479.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001352/0.4522, allocations: 0.902 MB / 480.8 MB, free: 8.277 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.4522, allocations: 55.41 kB / 480.9 MB, free: 8.211 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.4523, allocations: 141.6 kB / 481 MB, free: 8.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.4523, allocations: 29.64 kB / 481.1 MB, free: 8.051 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.4524, allocations: 143.8 kB / 481.2 MB, free: 7.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.4525, allocations: 109.2 kB / 481.3 MB, free: 7.848 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-06/0.4525, allocations: 0 / 481.3 MB, free: 7.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.403e-05/0.4525, allocations: 332.3 kB / 481.6 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.824e-05/0.4526, allocations: 57.56 kB / 481.7 MB, free: 7.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.4528, allocations: 94.8 kB / 481.8 MB, free: 7.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.4529, allocations: 70.73 kB / 481.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.4529, allocations: 0 / 481.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003591/0.4532, allocations: 252.5 kB / 482.1 MB, free: 7.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4533, allocations: 8 kB / 482.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4533, allocations: 0 / 482.1 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.4534, allocations: 45.97 kB / 482.1 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.4537, allocations: 59.61 kB / 482.2 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009715/0.4546, allocations: 1.509 MB / 483.7 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.4548, allocations: 4 kB / 483.7 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.4548, allocations: 4 kB / 483.7 MB, free: 5.59 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 7.15e-05/0.4549, allocations: 108.9 kB / 483.8 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003094/0.4552, allocations: 230.9 kB / 484.1 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.4552, allocations: 23.8 kB / 484.1 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.4553, allocations: 20.91 kB / 484.1 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.4553, allocations: 5.781 kB / 484.1 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4553, allocations: 7.953 kB / 484.1 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.4553, allocations: 3.984 kB / 484.1 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007554/0.4561, allocations: 0.6962 MB / 484.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4561, allocations: 7.906 kB / 484.8 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.4564, allocations: 59.16 kB / 484.9 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.885e-05/0.4565, allocations: 36.25 kB / 484.9 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.4565, allocations: 7.984 kB / 484.9 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007199/0.4572, allocations: 1.326 MB / 486.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4572, allocations: 0 / 486.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004522/0.4577, allocations: 478.5 kB / 486.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.4578, allocations: 96.95 kB / 486.8 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.4578, allocations: 0 / 486.8 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.4579, allocations: 4 kB / 486.8 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.458, allocations: 23.22 kB / 486.8 MB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.458, allocations: 4 kB / 486.8 MB, free: 2.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.054e-05/0.4581, allocations: 117.7 kB / 487 MB, free: 2.469 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4581, allocations: 4 kB / 487 MB, free: 2.465 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003599/0.4584, allocations: 52 kB / 487 MB, free: 2.414 MB / 346.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.0006531/0.4591, allocations: 1.216 MB / 488.2 MB, free: 1.242 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004295/0.4595, allocations: 300.7 kB / 488.5 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4596, allocations: 4.125 kB / 488.5 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.4598, allocations: 222.7 kB / 488.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.4601, allocations: 27.39 kB / 488.8 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.4613, allocations: 0.6269 MB / 489.4 MB, free: 164 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.4616, allocations: 0.7642 MB / 490.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.627e-05/0.4617, allocations: 26.05 kB / 490.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.583e-05/0.4619, allocations: 66.42 kB / 490.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4619, allocations: 0 / 490.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.4864, allocations: 4.084 MB / 494.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.4866, allocations: 132.5 kB / 494.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.269, allocations: 0 / 494.5 MB, free: 11.12 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