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.001126/0.001126, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008757/0.0008756, allocations: 90.7 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002314/0.0002314, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2048/0.205, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08642/0.2915, allocations: 77.59 MB / 453.5 MB, free: 3.066 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.2918, allocations: 67.97 kB / 453.6 MB, free: 3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01013/0.3019, allocations: 4.039 MB / 457.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3019, allocations: 0 / 457.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.3019, allocations: 4 kB / 457.6 MB, free: 14.95 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.0005652/0.3025, allocations: 0.4989 MB / 458.1 MB, free: 14.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3026, allocations: 8.031 kB / 458.1 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.556e-05/0.3026, allocations: 58.55 kB / 458.2 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.3027, allocations: 31.61 kB / 458.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.3029, allocations: 227.4 kB / 458.4 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.303, allocations: 20.39 kB / 458.4 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.212e-05/0.303, allocations: 24 kB / 458.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.3033, allocations: 191.2 kB / 458.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3034, allocations: 4 kB / 458.7 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.3034, allocations: 11.94 kB / 458.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3034, allocations: 12.2 kB / 458.7 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.3037, allocations: 141.7 kB / 458.8 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008299/0.3045, allocations: 0.6311 MB / 459.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.3048, allocations: 181 kB / 459.6 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3048, allocations: 4.406 kB / 459.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.3049, allocations: 34.56 kB / 459.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.3049, allocations: 0 / 459.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001756/0.3066, allocations: 1.083 MB / 460.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.3067, allocations: 59.41 kB / 460.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.3068, allocations: 154.3 kB / 461 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.3069, allocations: 33.7 kB / 461 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.3069, allocations: 140.7 kB / 461.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.918e-05/0.307, allocations: 110.3 kB / 461.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.3071, allocations: 8 kB / 461.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3072, allocations: 334.8 kB / 461.6 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.3073, allocations: 79.72 kB / 461.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.3075, allocations: 104.7 kB / 461.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.3077, allocations: 89.39 kB / 461.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3077, allocations: 0 / 461.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004739/0.3081, allocations: 295.9 kB / 462.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3082, allocations: 4 kB / 462.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.3082, allocations: 3.953 kB / 462.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.3083, allocations: 48.83 kB / 462.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.3086, allocations: 55.91 kB / 462.2 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.3099, allocations: 1.589 MB / 463.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3101, allocations: 12.06 kB / 463.8 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.853e-05/0.3101, allocations: 12 kB / 463.8 MB, free: 8.242 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 () * Number of clocked 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.000133/0.3102, allocations: 140.6 kB / 464 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.3103, allocations: 23.72 kB / 464 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.003e-05/0.3103, allocations: 34.64 kB / 464 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3103, allocations: 4 kB / 464 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3104, allocations: 0 / 464 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3104, allocations: 4 kB / 464 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.3114, allocations: 0.7863 MB / 464.8 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3114, allocations: 7.938 kB / 464.8 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.3117, allocations: 63.84 kB / 464.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001028/0.3118, allocations: 28.84 kB / 464.9 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.3118, allocations: 8 kB / 464.9 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001046/0.3129, allocations: 1.394 MB / 466.3 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3129, allocations: 8.031 kB / 466.3 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006437/0.3136, allocations: 0.514 MB / 466.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.3136, allocations: 96.86 kB / 466.9 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.3137, allocations: 7.953 kB / 467 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3138, allocations: 16.03 kB / 467 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.3138, allocations: 19.97 kB / 467 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.3139, allocations: 12 kB / 467 MB, free: 4.797 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001032/0.314, allocations: 135.5 kB / 467.1 MB, free: 4.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.314, allocations: 0 / 467.1 MB, free: 4.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.3143, allocations: 64 kB / 467.2 MB, free: 4.602 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 () * Number of clocked 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.001025/0.3154, allocations: 1.271 MB / 468.5 MB, free: 3.281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005658/0.3159, allocations: 346.5 kB / 468.8 MB, free: 2.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.3159, allocations: 8 kB / 468.8 MB, free: 2.922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.3163, allocations: 238.5 kB / 469 MB, free: 2.676 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.3166, allocations: 46.83 kB / 469.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.3191, allocations: 1.971 MB / 471.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3194, allocations: 0.7717 MB / 471.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.344e-05/0.3195, allocations: 22.28 kB / 471.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.3196, allocations: 75.42 kB / 471.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3196, allocations: 0 / 471.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.336, allocations: 4.688 MB / 476.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.3363, allocations: 191.5 kB / 476.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.995, allocations: 0 / 476.8 MB, free: 10.8 MB / 362.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