Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 202.2 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 227.2 MB / 245 MB, free: 7.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009045/0.0009045, allocations: 106.6 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002339/0.0002338, allocations: 4 kB / 358 MB, free: 9.449 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2123, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09241/0.3047, allocations: 79.49 MB / 489 MB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.305, allocations: 67.97 kB / 489 MB, free: 11.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006579/0.3116, allocations: 2.447 MB / 491.5 MB, free: 8.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3116, allocations: 0 / 491.5 MB, free: 8.621 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3116, allocations: 4 kB / 491.5 MB, free: 8.617 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004614/0.3121, allocations: 418.8 kB / 491.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3121, allocations: 8.031 kB / 491.9 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.7e-05/0.3122, allocations: 50.67 kB / 492 MB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/0.3122, allocations: 15.81 kB / 492 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.3124, allocations: 210.7 kB / 492.2 MB, free: 7.836 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.3124, allocations: 11.95 kB / 492.2 MB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.3124, allocations: 19.92 kB / 492.2 MB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.3129, allocations: 250.5 kB / 492.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3129, allocations: 0 / 492.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.3129, allocations: 4 kB / 492.5 MB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3129, allocations: 4 kB / 492.5 MB, free: 7.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002455/0.3132, allocations: 95.88 kB / 492.6 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.3137, allocations: 0.5921 MB / 493.1 MB, free: 6.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.3141, allocations: 147.7 kB / 493.3 MB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3141, allocations: 15.98 kB / 493.3 MB, free: 6.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.3141, allocations: 34.69 kB / 493.3 MB, free: 6.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.3141, allocations: 4 kB / 493.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004941/0.3146, allocations: 197.4 kB / 493.5 MB, free: 6.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.3147, allocations: 114.8 kB / 493.6 MB, free: 6.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.92e-05/0.3148, allocations: 120.5 kB / 493.8 MB, free: 6.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.3148, allocations: 29.7 kB / 493.8 MB, free: 6.039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.3149, allocations: 108 kB / 493.9 MB, free: 5.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.3149, allocations: 35.77 kB / 493.9 MB, free: 5.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.3149, allocations: 3.938 kB / 493.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.335e-05/0.315, allocations: 326.8 kB / 494.3 MB, free: 5.562 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3152, allocations: 36.34 kB / 494.3 MB, free: 5.523 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.3153, allocations: 145.6 kB / 494.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.3155, allocations: 61.28 kB / 494.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3155, allocations: 4 kB / 494.5 MB, free: 5.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003535/0.3158, allocations: 205.2 kB / 494.7 MB, free: 5.066 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3159, allocations: 4 kB / 494.7 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3159, allocations: 7.984 kB / 494.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3159, allocations: 11.89 kB / 494.7 MB, free: 5.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.3161, allocations: 47.92 kB / 494.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3161, allocations: 4.469 kB / 494.8 MB, free: 4.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3162, allocations: 31.83 kB / 494.8 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.3162, allocations: 8 kB / 494.8 MB, free: 4.953 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.623e-05/0.3163, allocations: 125.8 kB / 494.9 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3164, allocations: 85.77 kB / 495 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.85e-05/0.3165, allocations: 24.69 kB / 495 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3165, allocations: 3.953 kB / 495 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3165, allocations: 4 kB / 495.1 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3166, allocations: 4 kB / 495.1 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.3168, allocations: 209.5 kB / 495.3 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3168, allocations: 0 / 495.3 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.317, allocations: 47.91 kB / 495.3 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.317, allocations: 0 / 495.3 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.317, allocations: 4 kB / 495.3 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.317, allocations: 0 / 495.3 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.317, allocations: 3.953 kB / 495.3 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005036/0.3175, allocations: 425.9 kB / 495.7 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3176, allocations: 85.05 kB / 495.8 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.3176, allocations: 7.953 kB / 495.8 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.3178, allocations: 11.98 kB / 495.8 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.007e-05/0.3178, allocations: 7.938 kB / 495.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.3178, allocations: 4 kB / 495.8 MB, free: 3.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.3179, allocations: 106.1 kB / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3179, allocations: 96 / 496 MB, free: 3.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002928/0.3182, allocations: 35.86 kB / 496 MB, free: 3.672 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000744/0.3189, allocations: 1.091 MB / 497.1 MB, free: 2.539 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002821/0.3192, allocations: 128.6 kB / 497.2 MB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3192, allocations: 0 / 497.2 MB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.3193, allocations: 40.03 kB / 497.2 MB, free: 2.375 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.3197, allocations: 54.19 kB / 497.3 MB, free: 2.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.3216, allocations: 3.254 MB / 0.4888 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.3219, allocations: 0.7203 MB / 0.4895 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.32e-05/0.3219, allocations: 9.078 kB / 0.4895 GB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.675e-05/0.322, allocations: 35.5 kB / 0.4896 GB, free: 14.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.322, allocations: 0 / 0.4896 GB, free: 14.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01181/0.3338, allocations: 2.414 MB / 0.4919 GB, free: 11.92 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.334, allocations: 210.5 kB / 0.4921 GB, free: 11.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.568/1.902, allocations: 0 / 0.4921 GB, free: 11.69 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat