Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001057/0.001056, allocations: 175.1 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.297/1.297, allocations: 221.3 MB / 235.5 MB, free: 2.887 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.0008252/0.0008253, allocations: 96.05 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.551e-05/2.554e-05, allocations: 0 / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1098, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.318/0.4279, allocations: 78.6 MB / 472.9 MB, free: 8.855 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4282, allocations: 69.8 kB / 473 MB, free: 8.789 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006607/0.4348, allocations: 2.372 MB / 475.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4348, allocations: 0 / 475.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.4348, allocations: 4 kB / 475.4 MB, free: 6.426 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005344/0.4354, allocations: 414.9 kB / 475.8 MB, free: 5.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.4354, allocations: 8.031 kB / 475.8 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.4355, allocations: 46.55 kB / 475.8 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.604e-05/0.4355, allocations: 11.91 kB / 475.8 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.4357, allocations: 203 kB / 476 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.4358, allocations: 8 kB / 476.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.333e-05/0.4358, allocations: 16 kB / 476.1 MB, free: 5.641 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.4363, allocations: 230.6 kB / 476.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.4363, allocations: 11.86 kB / 476.3 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.4363, allocations: 4 kB / 476.3 MB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.4363, allocations: 4 kB / 476.3 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.4365, allocations: 59.92 kB / 476.4 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.4371, allocations: 0.5921 MB / 477 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.4374, allocations: 139.9 kB / 477.1 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.4375, allocations: 62.67 kB / 477.2 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.4376, allocations: 11.94 kB / 477.2 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.4376, allocations: 38.56 kB / 477.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.4376, allocations: 0 / 477.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002701/0.4379, allocations: 117.5 kB / 477.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.438, allocations: 110.8 kB / 477.4 MB, free: 4.098 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.4381, allocations: 126.9 kB / 477.6 MB, free: 3.965 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.4381, allocations: 33.7 kB / 477.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.4382, allocations: 111.8 kB / 477.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.4382, allocations: 19.72 kB / 477.7 MB, free: 3.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.4382, allocations: 4 kB / 477.7 MB, free: 3.789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4383, allocations: 322.8 kB / 478 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.023e-05/0.4384, allocations: 24.38 kB / 478.1 MB, free: 3.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.4385, allocations: 129.4 kB / 478.2 MB, free: 3.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.993e-05/0.4386, allocations: 39.92 kB / 478.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4386, allocations: 4 kB / 478.2 MB, free: 3.223 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002342/0.4389, allocations: 165.2 kB / 478.4 MB, free: 3.055 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.4389, allocations: 11.98 kB / 478.4 MB, free: 3.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.4389, allocations: 4.469 kB / 478.4 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4389, allocations: 8 kB / 478.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.4391, allocations: 43.92 kB / 478.5 MB, free: 2.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.4391, allocations: 16.55 kB / 478.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.4392, allocations: 23.84 kB / 478.5 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.4393, allocations: 11.95 kB / 478.5 MB, free: 2.938 MB / 346.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 () * 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 7.296e-05/0.4393, allocations: 113 kB / 478.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.4395, allocations: 93.47 kB / 478.7 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.141e-05/0.4396, allocations: 20.61 kB / 478.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.4396, allocations: 4 kB / 478.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4397, allocations: 0 / 478.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4397, allocations: 0 / 478.7 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.4399, allocations: 209.5 kB / 478.9 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.4399, allocations: 0 / 478.9 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.4401, allocations: 43.91 kB / 479 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4401, allocations: 0 / 479 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.4402, allocations: 8 kB / 479 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4402, allocations: 4 kB / 479 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4402, allocations: 0 / 479 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.4405, allocations: 368.3 kB / 479.4 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.785e-05/0.4406, allocations: 96.88 kB / 479.4 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.4406, allocations: 8.062 kB / 479.5 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.4408, allocations: 8 kB / 479.5 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.4408, allocations: 12.03 kB / 479.5 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.4409, allocations: 4 kB / 479.5 MB, free: 1.855 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.971e-05/0.4409, allocations: 102.8 kB / 479.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4409, allocations: 0 / 479.6 MB, free: 1.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002887/0.4412, allocations: 28 kB / 479.6 MB, free: 1.73 MB / 346.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 () * 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.0006814/0.4419, allocations: 1.045 MB / 480.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.4421, allocations: 95.94 kB / 480.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4421, allocations: 0 / 480.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.4422, allocations: 23.92 kB / 480.8 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.4425, allocations: 40.41 kB / 480.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007221/0.4432, allocations: 354.3 kB / 481.2 MB, free: 112 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.4435, allocations: 0.7206 MB / 481.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.746e-05/0.4436, allocations: 13.14 kB / 481.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.858e-05/0.4437, allocations: 39.42 kB / 481.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4437, allocations: 0 / 481.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01455/0.4582, allocations: 2.392 MB / 484.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002651/0.4586, allocations: 184.4 kB / 484.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/1.982, allocations: 4.062 kB / 484.5 MB, free: 12.85 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat