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.001002/0.001002, 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.405/1.405, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001096/0.001096, allocations: 91.56 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.627e-05, allocations: 0 / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09675, allocations: 51.49 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.326/0.4228, allocations: 80.9 MB / 476.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.423, allocations: 73.91 kB / 476.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01971/0.4428, allocations: 7.474 MB / 483.7 MB, free: 5.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4428, allocations: 0 / 483.7 MB, free: 5.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.4429, allocations: 8 kB / 483.7 MB, free: 5.762 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009694/0.4438, allocations: 0.5737 MB / 484.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.4439, allocations: 12.03 kB / 484.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.444, allocations: 47.44 kB / 484.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006341/0.4447, allocations: 356 kB / 484.7 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.4447, allocations: 12 kB / 484.7 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.4448, allocations: 16 kB / 484.7 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003057/0.4451, allocations: 149.5 kB / 484.9 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008279/0.4459, allocations: 0.6102 MB / 485.5 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.4459, allocations: 3.75 kB / 485.5 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.446, allocations: 4 kB / 485.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.446, allocations: 4 kB / 485.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007265/0.4467, allocations: 0.7092 MB / 486.2 MB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/0.4474, allocations: 0.5106 MB / 486.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.4476, allocations: 217.7 kB / 486.9 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005432/0.4482, allocations: 0.585 MB / 487.5 MB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.4482, allocations: 44.06 kB / 487.6 MB, free: 2.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 2.154e-06/0.4482, allocations: 0 / 487.6 MB, free: 2.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005699/0.4488, allocations: 301.8 kB / 487.8 MB, free: 1.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.634e-05/0.4489, allocations: 186 kB / 488 MB, free: 1.566 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.4491, allocations: 201.3 kB / 488.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.4492, allocations: 29.7 kB / 488.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.628e-05/0.4492, allocations: 155.9 kB / 488.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.4493, allocations: 45.91 kB / 488.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.4493, allocations: 0 / 488.5 MB, free: 1.211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.4494, allocations: 345.3 kB / 488.8 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.665e-05/0.4495, allocations: 57.75 kB / 488.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.4497, allocations: 390.9 kB / 489.2 MB, free: 344 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.4499, allocations: 132 kB / 489.4 MB, free: 244 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.4499, allocations: 4 kB / 489.4 MB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005946/0.4505, allocations: 401.5 kB / 489.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4505, allocations: 8 kB / 489.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.4506, allocations: 12 kB / 489.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.099e-05/0.4506, allocations: 20 kB / 489.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.451, allocations: 119.2 kB / 489.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/0.451, allocations: 26.84 kB / 489.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.4513, allocations: 43.58 kB / 490 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.4513, allocations: 35.25 kB / 490 MB, free: 15.63 MB / 362.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 () * 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.000135/0.4514, allocations: 137.3 kB / 490.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005492/0.452, allocations: 303.7 kB / 490.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.4521, allocations: 31.62 kB / 490.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005426/0.4526, allocations: 287.7 kB / 490.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.4527, allocations: 8 kB / 490.8 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4527, allocations: 0 / 490.8 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.4527, allocations: 8.016 kB / 490.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.4531, allocations: 276.3 kB / 491 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.4531, allocations: 7.938 kB / 491 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.4535, allocations: 99.75 kB / 491.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.4536, allocations: 8.703 kB / 491.2 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.4536, allocations: 7.984 kB / 491.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4536, allocations: 0 / 491.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4536, allocations: 4 kB / 491.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000866/0.4545, allocations: 0.6743 MB / 491.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.329e-05/0.4546, allocations: 116.5 kB / 492 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.4546, allocations: 14.92 kB / 492 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.4549, allocations: 23.97 kB / 492 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.4549, allocations: 2.719 kB / 492 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.455, allocations: 15.81 kB / 492 MB, free: 13.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001801/0.4552, allocations: 163.1 kB / 492.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4552, allocations: 0 / 492.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005724/0.4558, allocations: 63.44 kB / 492.2 MB, free: 13.66 MB / 362.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 () * 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.00132/0.4571, allocations: 1.448 MB / 493.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004801/0.4576, allocations: 278.9 kB / 494 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4576, allocations: 1.312 kB / 494 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.25e-05/0.4576, allocations: 10.75 kB / 494 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007934/0.4584, allocations: 245.1 kB / 494.2 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.4603, allocations: 0.6328 MB / 494.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.4607, allocations: 0.8178 MB / 495.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.4609, allocations: 39.27 kB / 495.7 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4611, allocations: 107 kB / 495.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4611, allocations: 0 / 495.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.488, allocations: 6.531 MB / 0.4906 GB, free: 3.949 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.4882, allocations: 169.4 kB / 0.4907 GB, free: 3.758 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.099/2.587, allocations: 4.719 kB / 0.4907 GB, free: 3.758 MB / 362.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