Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.2 MB / 245 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009195/0.0009196, allocations: 109.6 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002036/0.0002036, allocations: 4 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.1872, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08566/0.2729, allocations: 81.64 MB / 491.1 MB, free: 8.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.2731, allocations: 71.95 kB / 491.2 MB, free: 8.859 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01973/0.2929, allocations: 7.551 MB / 498.8 MB, free: 1.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2929, allocations: 0 / 498.8 MB, free: 1.309 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.2929, allocations: 11.98 kB / 498.8 MB, free: 1.297 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009125/0.2938, allocations: 0.6155 MB / 499.4 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.2939, allocations: 8.031 kB / 499.4 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.922e-05/0.294, allocations: 62.53 kB / 499.5 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.2941, allocations: 39.53 kB / 499.5 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.2946, allocations: 367.2 kB / 499.9 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.2947, allocations: 24.56 kB / 499.9 MB, free: 96 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.15e-05/0.2947, allocations: 28 kB / 499.9 MB, free: 68 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2959, allocations: 0.7296 MB / 0.4889 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.296, allocations: 0 / 0.4889 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.296, allocations: 16 kB / 0.4889 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.296, allocations: 4 kB / 0.4889 GB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00053/0.2966, allocations: 231.5 kB / 0.4891 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007816/0.2974, allocations: 0.7759 MB / 0.4899 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009711/0.2983, allocations: 0.6109 MB / 0.4905 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005027/0.2989, allocations: 0.5817 MB / 0.4911 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.2989, allocations: 38.56 kB / 0.4911 GB, free: 12.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 1.753e-06/0.2989, allocations: 4 kB / 0.4911 GB, free: 12.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001173/0.3001, allocations: 0.608 MB / 0.4917 GB, free: 12.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3002, allocations: 186.1 kB / 0.4919 GB, free: 11.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.3004, allocations: 213.9 kB / 0.4921 GB, free: 11.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3004, allocations: 41.64 kB / 0.4921 GB, free: 11.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.3005, allocations: 164.6 kB / 0.4923 GB, free: 11.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.873e-05/0.3006, allocations: 39.69 kB / 0.4923 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.3006, allocations: 12 kB / 0.4923 GB, free: 11.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.3007, allocations: 342.8 kB / 0.4926 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.3009, allocations: 89.17 kB / 0.4927 GB, free: 11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.3012, allocations: 429.6 kB / 0.4931 GB, free: 10.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.3015, allocations: 159 kB / 0.4933 GB, free: 10.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-06/0.3015, allocations: 7.984 kB / 0.4933 GB, free: 10.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007204/0.3022, allocations: 0.4969 MB / 0.4938 GB, free: 9.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.3023, allocations: 8 kB / 0.4938 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3023, allocations: 12 kB / 0.4938 GB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.3023, allocations: 20.75 kB / 0.4938 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.3026, allocations: 131.8 kB / 0.494 GB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.3027, allocations: 19.94 kB / 0.494 GB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.3029, allocations: 51.67 kB / 0.494 GB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.3029, allocations: 31.94 kB / 0.4941 GB, free: 9.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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 0.0001629/0.3031, allocations: 186.4 kB / 0.4942 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005729/0.3037, allocations: 338 kB / 0.4946 GB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006188/0.3043, allocations: 356.5 kB / 0.4949 GB, free: 8.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3043, allocations: 8 kB / 0.4949 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3044, allocations: 3.938 kB / 0.4949 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3044, allocations: 0 / 0.4949 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003319/0.3047, allocations: 337.1 kB / 0.4952 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.3047, allocations: 0 / 0.4952 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003959/0.3051, allocations: 103.9 kB / 0.4953 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.3051, allocations: 3.953 kB / 0.4953 GB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.3052, allocations: 12.47 kB / 0.4953 GB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3052, allocations: 4 kB / 0.4953 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3052, allocations: 0 / 0.4953 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.3064, allocations: 0.8188 MB / 0.4961 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/0.3064, allocations: 128.5 kB / 0.4963 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/0.3065, allocations: 12 kB / 0.4963 GB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.3067, allocations: 28.05 kB / 0.4963 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.3068, allocations: 7.984 kB / 0.4963 GB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.3068, allocations: 12 kB / 0.4963 GB, free: 7.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001424/0.307, allocations: 178 kB / 0.4965 GB, free: 6.844 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.307, allocations: 0 / 0.4965 GB, free: 6.844 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.3074, allocations: 79.94 kB / 0.4966 GB, free: 6.766 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001459/0.3089, allocations: 1.591 MB / 0.4981 GB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006471/0.3096, allocations: 369.4 kB / 0.4985 GB, free: 4.773 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3096, allocations: 12 kB / 0.4985 GB, free: 4.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.81e-05/0.3097, allocations: 31.92 kB / 0.4985 GB, free: 4.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007616/0.3105, allocations: 292 kB / 0.4988 GB, free: 4.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1466/0.4571, allocations: 10.01 MB / 0.5086 GB, free: 91.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.4575, allocations: 0.8198 MB / 0.5094 GB, free: 90.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.4577, allocations: 37.41 kB / 0.5094 GB, free: 90.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.4578, allocations: 113.7 kB / 0.5095 GB, free: 90.44 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.4579, allocations: 0 / 0.5095 GB, free: 90.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.4764, allocations: 7.056 MB / 0.5164 GB, free: 89.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/0.4766, allocations: 210.6 kB / 0.5166 GB, free: 89.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.401, allocations: 2.656 kB / 0.5166 GB, free: 89.64 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat does not exist to compare? outputFormat=mat