Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009752/0.0009752, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 221.3 MB / 235.5 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 93.92 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.791e-05, allocations: 0 / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09269, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2934/0.3861, allocations: 80.77 MB / 475.1 MB, free: 6.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.3865, allocations: 73.67 kB / 475.2 MB, free: 6.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02092/0.4074, allocations: 7.463 MB / 482.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4074, allocations: 0 / 482.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.4075, allocations: 8 kB / 482.6 MB, free: 15.18 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.0007834/0.4083, allocations: 0.5691 MB / 483.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.4083, allocations: 15.97 kB / 483.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.458e-05/0.4084, allocations: 70.53 kB / 483.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.124e-05/0.4084, allocations: 39.53 kB / 483.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.409, allocations: 346.7 kB / 483.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.409, allocations: 25.19 kB / 483.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.4091, allocations: 28 kB / 483.7 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009771/0.4101, allocations: 0.6664 MB / 484.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.4101, allocations: 4 kB / 484.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.4101, allocations: 12 kB / 484.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.4102, allocations: 4 kB / 484.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.4104, allocations: 163.8 kB / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000748/0.4112, allocations: 0.7643 MB / 485.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007021/0.4119, allocations: 0.5528 MB / 485.9 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.4122, allocations: 223.5 kB / 486.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005558/0.4128, allocations: 0.5895 MB / 486.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.4128, allocations: 46.45 kB / 486.7 MB, free: 10.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.154e-06/0.4128, allocations: 0 / 486.7 MB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005672/0.4134, allocations: 325.8 kB / 487.1 MB, free: 10.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.4135, allocations: 194 kB / 487.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002144/0.4137, allocations: 215 kB / 487.5 MB, free: 9.875 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.4138, allocations: 33.7 kB / 487.5 MB, free: 9.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.74e-05/0.4139, allocations: 152.8 kB / 487.6 MB, free: 9.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.266e-05/0.4139, allocations: 47.53 kB / 487.7 MB, free: 9.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.4139, allocations: 12 kB / 487.7 MB, free: 9.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4141, allocations: 342.8 kB / 488 MB, free: 9.277 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.4142, allocations: 73.11 kB / 488.1 MB, free: 9.207 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.4145, allocations: 409.7 kB / 488.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.4147, allocations: 139.8 kB / 488.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.4147, allocations: 4 kB / 488.6 MB, free: 8.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006029/0.4153, allocations: 461.2 kB / 489.1 MB, free: 8.043 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.4153, allocations: 15.98 kB / 489.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.4154, allocations: 12 kB / 489.1 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.4154, allocations: 19.95 kB / 489.1 MB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003248/0.4157, allocations: 115.8 kB / 489.3 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.261e-05/0.4158, allocations: 32.34 kB / 489.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.416, allocations: 59.58 kB / 489.3 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.416, allocations: 32 kB / 489.4 MB, free: 7.762 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.0001202/0.4162, allocations: 145.5 kB / 489.5 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004349/0.4166, allocations: 293.1 kB / 489.8 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005181/0.4171, allocations: 316.3 kB / 490.1 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.4172, allocations: 15.89 kB / 490.1 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4172, allocations: 4 kB / 490.1 MB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.4172, allocations: 4.172 kB / 490.1 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000347/0.4175, allocations: 333.1 kB / 490.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4176, allocations: 7.984 kB / 490.5 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003967/0.418, allocations: 99.88 kB / 490.6 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.418, allocations: 4 kB / 490.6 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.418, allocations: 11.98 kB / 490.6 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.952e-06/0.418, allocations: 8 kB / 490.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.418, allocations: 3.953 kB / 490.6 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008223/0.4189, allocations: 0.7096 MB / 491.3 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.4189, allocations: 116.6 kB / 491.4 MB, free: 5.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.79e-05/0.419, allocations: 20 kB / 491.4 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.4192, allocations: 23.98 kB / 491.5 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.4193, allocations: 7.922 kB / 491.5 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.4193, allocations: 16 kB / 491.5 MB, free: 5.531 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001473/0.4195, allocations: 171.1 kB / 491.7 MB, free: 5.367 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4195, allocations: 4.062 kB / 491.7 MB, free: 5.363 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004495/0.4199, allocations: 83.89 kB / 491.7 MB, free: 5.281 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.001177/0.4211, allocations: 1.483 MB / 493.2 MB, free: 3.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.4216, allocations: 304.7 kB / 493.5 MB, free: 3.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4216, allocations: 0 / 493.5 MB, free: 3.461 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.484e-05/0.4216, allocations: 23.88 kB / 493.5 MB, free: 3.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/0.4223, allocations: 262.8 kB / 493.8 MB, free: 3.176 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.4238, allocations: 0.6639 MB / 494.5 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.4242, allocations: 0.8202 MB / 495.3 MB, free: 1.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.4243, allocations: 43.27 kB / 495.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.4245, allocations: 111.4 kB / 495.4 MB, free: 1.465 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4245, allocations: 0 / 495.4 MB, free: 1.465 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.4456, allocations: 7.045 MB / 0.4907 GB, free: 10.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/0.4459, allocations: 177.9 kB / 0.4909 GB, free: 10.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.468, allocations: 8.594 kB / 0.4909 GB, free: 10.37 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat does not exist to compare? outputFormat=mat