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.001595/0.001595, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000995/0.000995, allocations: 91.31 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.141e-05, allocations: 4 kB / 350.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 51.47 MB / 402.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4462, allocations: 81.57 MB / 483.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.4465, allocations: 71.28 kB / 483.8 MB, free: 7.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01906/0.4655, allocations: 7.528 MB / 491.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4656, allocations: 0 / 491.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.865e-05/0.4656, allocations: 8 kB / 491.3 MB, free: 1.555 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.0008203/0.4664, allocations: 0.5754 MB / 491.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4665, allocations: 8.031 kB / 491.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.005e-05/0.4666, allocations: 66.28 kB / 491.9 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.4667, allocations: 45.27 kB / 492 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.4673, allocations: 358.6 kB / 492.3 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.584e-05/0.4673, allocations: 19.88 kB / 492.4 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.4674, allocations: 26.81 kB / 492.4 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009411/0.4683, allocations: 0.6641 MB / 493 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.4683, allocations: 3.938 kB / 493 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.4684, allocations: 11.12 kB / 493.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.4684, allocations: 4 kB / 493.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.4687, allocations: 154.6 kB / 493.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008966/0.4696, allocations: 0.7701 MB / 494 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007818/0.4704, allocations: 0.5435 MB / 494.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.4707, allocations: 230 kB / 494.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006423/0.4714, allocations: 0.5856 MB / 495.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.4714, allocations: 38.56 kB / 495.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 3.727e-06/0.4714, allocations: 4.109 kB / 495.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006335/0.4721, allocations: 338.9 kB / 495.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.4722, allocations: 186.2 kB / 495.9 MB, free: 12.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.4725, allocations: 211 kB / 496.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.4725, allocations: 33.7 kB / 496.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.4726, allocations: 152.7 kB / 496.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.4727, allocations: 51.56 kB / 496.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.4727, allocations: 16.03 kB / 496.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4728, allocations: 347.5 kB / 496.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.473, allocations: 65.12 kB / 496.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.4733, allocations: 405.7 kB / 497.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.4735, allocations: 151.9 kB / 497.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.4736, allocations: 7.953 kB / 497.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006934/0.4743, allocations: 461.6 kB / 497.8 MB, free: 10.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.4743, allocations: 8 kB / 497.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.4743, allocations: 14.34 kB / 497.8 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.4744, allocations: 20.06 kB / 497.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.4747, allocations: 127.8 kB / 497.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.191e-05/0.4747, allocations: 19.94 kB / 497.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.475, allocations: 52.14 kB / 498 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.4751, allocations: 32 kB / 498 MB, free: 10.66 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.0001383/0.4752, allocations: 156.7 kB / 498.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005104/0.4757, allocations: 293.1 kB / 498.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005538/0.4763, allocations: 324.8 kB / 498.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.4763, allocations: 8 kB / 498.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.85e-06/0.4763, allocations: 0 / 498.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4763, allocations: 0 / 498.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.4767, allocations: 333.7 kB / 499.1 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4768, allocations: 7.984 kB / 499.1 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.4772, allocations: 107.8 kB / 499.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/0.4772, allocations: 0 / 499.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.4772, allocations: 12 kB / 499.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4772, allocations: 6.312 kB / 499.2 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4772, allocations: 3.938 kB / 499.2 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008718/0.4781, allocations: 0.7058 MB / 499.9 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.866e-05/0.4782, allocations: 112.6 kB / 0.4883 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.4783, allocations: 12 kB / 0.4884 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.4785, allocations: 31.97 kB / 0.4884 GB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.4786, allocations: 4.062 kB / 0.4884 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.4786, allocations: 19.98 kB / 0.4884 GB, free: 8.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001678/0.4788, allocations: 172.6 kB / 0.4886 GB, free: 8.262 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4788, allocations: 4 kB / 0.4886 GB, free: 8.258 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.4793, allocations: 79.8 kB / 0.4886 GB, free: 8.18 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.001343/0.4807, allocations: 1.493 MB / 0.4901 GB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005295/0.4812, allocations: 316.8 kB / 0.4904 GB, free: 6.336 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.4812, allocations: 0 / 0.4904 GB, free: 6.336 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.915e-05/0.4813, allocations: 16.69 kB / 0.4904 GB, free: 6.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007908/0.4821, allocations: 261.6 kB / 0.4907 GB, free: 6.059 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.4838, allocations: 0.6595 MB / 0.4913 GB, free: 5.359 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.4842, allocations: 0.8201 MB / 0.4921 GB, free: 4.512 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.4843, allocations: 39.27 kB / 0.4922 GB, free: 4.473 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.4845, allocations: 107.4 kB / 0.4923 GB, free: 4.371 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4845, allocations: 0 / 0.4923 GB, free: 4.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.5062, allocations: 7.055 MB / 0.4991 GB, free: 13.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000306/0.5066, allocations: 176.2 kB / 0.4993 GB, free: 13.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.009/2.516, allocations: 1.969 kB / 0.4993 GB, free: 13.37 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