Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 177.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.666/1.666, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009028/0.0009029, allocations: 87.61 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/3.326e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3666/0.4797, allocations: 78.35 MB / 472.7 MB, free: 9.133 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/0.4801, allocations: 63.97 kB / 472.7 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01149/0.4916, allocations: 4.148 MB / 476.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4916, allocations: 0 / 476.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.4916, allocations: 8 kB / 476.9 MB, free: 4.914 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.0006167/0.4923, allocations: 482.9 kB / 477.4 MB, free: 4.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.4923, allocations: 12.03 kB / 477.4 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.907e-05/0.4924, allocations: 54.55 kB / 477.4 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.4924, allocations: 23.72 kB / 477.5 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.4927, allocations: 231.3 kB / 477.7 MB, free: 4.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.4928, allocations: 16.44 kB / 477.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.4928, allocations: 20 kB / 477.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.4932, allocations: 187.3 kB / 477.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.4932, allocations: 0 / 477.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.4932, allocations: 11.95 kB / 477.9 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.4932, allocations: 8 kB / 477.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002276/0.4935, allocations: 129.7 kB / 478.1 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009513/0.4944, allocations: 0.6268 MB / 478.7 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.4948, allocations: 182.4 kB / 478.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.4949, allocations: 90.8 kB / 478.9 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.4949, allocations: 4 kB / 479 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.495, allocations: 30.78 kB / 479 MB, free: 2.664 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.317e-06/0.495, allocations: 0 / 479 MB, free: 2.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001657/0.4967, allocations: 0.9909 MB / 480 MB, free: 1.578 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4967, allocations: 55.41 kB / 480 MB, free: 1.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.4969, allocations: 162.3 kB / 480.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.4969, allocations: 33.7 kB / 480.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.497, allocations: 136.5 kB / 480.4 MB, free: 1.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.4971, allocations: 110.3 kB / 480.5 MB, free: 1.059 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.4971, allocations: 4 kB / 480.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4973, allocations: 330.8 kB / 480.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.4974, allocations: 64 kB / 480.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.4975, allocations: 94.84 kB / 480.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.4977, allocations: 82.5 kB / 481 MB, free: 492 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4977, allocations: 0 / 481 MB, free: 492 kB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000437/0.4981, allocations: 286.7 kB / 481.3 MB, free: 196 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4982, allocations: 5.719 kB / 481.3 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4982, allocations: 0 / 481.3 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.4983, allocations: 44.83 kB / 481.4 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.4986, allocations: 59.97 kB / 481.4 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.5001, allocations: 1.569 MB / 483 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.5002, allocations: 12.02 kB / 483 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.5003, allocations: 12 kB / 483 MB, free: 14.36 MB / 362.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.578e-05/0.5004, allocations: 116.9 kB / 483.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/0.5004, allocations: 19.81 kB / 483.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.96e-05/0.5005, allocations: 38.72 kB / 483.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.5005, allocations: 4.062 kB / 483.2 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5005, allocations: 4 kB / 483.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.5005, allocations: 0 / 483.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.5016, allocations: 0.7594 MB / 483.9 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5016, allocations: 4 kB / 483.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.5019, allocations: 59.91 kB / 484 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.502, allocations: 36.83 kB / 484 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.5021, allocations: 7.984 kB / 484 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.5032, allocations: 1.386 MB / 485.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.5032, allocations: 4.031 kB / 485.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006556/0.5039, allocations: 495.7 kB / 485.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.504, allocations: 104.8 kB / 486 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.504, allocations: 4 kB / 486 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.5042, allocations: 16.03 kB / 486 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.269e-05/0.5042, allocations: 31.86 kB / 486.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.5043, allocations: 12 kB / 486.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001165/0.5044, allocations: 127.5 kB / 486.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5044, allocations: 0 / 486.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.5048, allocations: 68 kB / 486.3 MB, free: 10.79 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.000998/0.5058, allocations: 1.243 MB / 487.5 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.5064, allocations: 318.4 kB / 487.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5064, allocations: 0 / 487.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.5067, allocations: 243 kB / 488.1 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.5071, allocations: 28.17 kB / 488.1 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.5083, allocations: 0.6591 MB / 488.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.5087, allocations: 0.7602 MB / 489.5 MB, free: 7.406 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.258e-05/0.5088, allocations: 22.08 kB / 489.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.5089, allocations: 75.41 kB / 489.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5089, allocations: 0 / 489.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.5271, allocations: 4.678 MB / 494.3 MB, free: 2.773 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.5273, allocations: 172.3 kB / 494.5 MB, free: 2.551 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.335, allocations: 4.062 kB / 494.5 MB, free: 2.547 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat