Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002655/0.002655, allocations: 181.1 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.2 MB / 219 MB, free: 9.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001203/0.001203, allocations: 82.61 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1105/0.1105, allocations: 12.59 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.874e-05/3.885e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5867/0.7154, allocations: 80.1 MB / 0.5045 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.7158, allocations: 75.98 kB / 0.5045 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01015/0.726, allocations: 2.593 MB / 0.5071 GB, free: 11.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7261, allocations: 0 / 0.5071 GB, free: 11.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.7261, allocations: 5.812 kB / 0.5071 GB, free: 11.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005919/0.7267, allocations: 416.3 kB / 0.5075 GB, free: 10.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.7267, allocations: 7.562 kB / 0.5075 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.7268, allocations: 45.92 kB / 0.5075 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.248e-05/0.7269, allocations: 15.5 kB / 0.5075 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.7271, allocations: 201.8 kB / 0.5077 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.7271, allocations: 14.8 kB / 0.5077 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.7272, allocations: 11.44 kB / 0.5078 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.7277, allocations: 212.7 kB / 0.508 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.7278, allocations: 0 / 0.508 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.7278, allocations: 3.844 kB / 0.508 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.7278, allocations: 0 / 0.508 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.7282, allocations: 67.42 kB / 0.508 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.73, allocations: 0.5988 MB / 0.5086 GB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.7304, allocations: 143 kB / 0.5087 GB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.7306, allocations: 63.94 kB / 0.5088 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.7306, allocations: 0 / 0.5088 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.7307, allocations: 49.83 kB / 0.5089 GB, free: 9.738 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.7307, allocations: 0 / 0.5089 GB, free: 9.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003528/0.731, allocations: 106.6 kB / 0.509 GB, free: 9.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.7311, allocations: 109.4 kB / 0.5091 GB, free: 9.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.7313, allocations: 130 kB / 0.5092 GB, free: 9.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.7313, allocations: 25.7 kB / 0.5092 GB, free: 9.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.7313, allocations: 119.7 kB / 0.5093 GB, free: 9.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.7314, allocations: 23.17 kB / 0.5093 GB, free: 9.312 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-06/0.7314, allocations: 10.47 kB / 0.5094 GB, free: 9.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.7315, allocations: 325 kB / 0.5097 GB, free: 8.992 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.243e-05/0.7316, allocations: 22.56 kB / 0.5097 GB, free: 8.988 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.7317, allocations: 126.1 kB / 0.5098 GB, free: 8.855 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.732, allocations: 135 kB / 0.5099 GB, free: 8.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.7321, allocations: 0 / 0.5099 GB, free: 8.746 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003324/0.7324, allocations: 174.2 kB / 0.5101 GB, free: 8.668 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.7324, allocations: 7.531 kB / 0.5101 GB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.7325, allocations: 3.906 kB / 0.5101 GB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.7325, allocations: 4.375 kB / 0.5101 GB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.7328, allocations: 57.91 kB / 0.5102 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.7328, allocations: 7.781 kB / 0.5102 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.733, allocations: 23.27 kB / 0.5102 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.733, allocations: 11.5 kB / 0.5102 GB, free: 8.637 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 9.71e-05/0.7332, allocations: 119.6 kB / 0.5103 GB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.7334, allocations: 89.52 kB / 0.5104 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.7334, allocations: 23.03 kB / 0.5104 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.7335, allocations: 7.859 kB / 0.5104 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7335, allocations: 3.938 kB / 0.5104 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.7335, allocations: 0 / 0.5104 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003125/0.7338, allocations: 213.8 kB / 0.5106 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.7338, allocations: 0 / 0.5106 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003853/0.7342, allocations: 46.72 kB / 0.5107 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.7342, allocations: 0 / 0.5107 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.7343, allocations: 11.36 kB / 0.5107 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.7343, allocations: 0 / 0.5107 GB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.7343, allocations: 11.83 kB / 0.5107 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.7347, allocations: 361.5 kB / 0.5111 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.452e-05/0.7348, allocations: 92.7 kB / 0.5111 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.7348, allocations: 7.828 kB / 0.5112 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.7351, allocations: 14.84 kB / 0.5112 GB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.815e-05/0.7351, allocations: 3.984 kB / 0.5112 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.7351, allocations: 3.969 kB / 0.5112 GB, free: 7.836 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.488e-05/0.7352, allocations: 108.7 kB / 0.5113 GB, free: 7.758 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7352, allocations: 0 / 0.5113 GB, free: 7.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000429/0.7357, allocations: 26.06 kB / 0.5113 GB, free: 7.758 MB / 330.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.0006811/0.7364, allocations: 1.038 MB / 0.5123 GB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.7367, allocations: 98.03 kB / 0.5124 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7367, allocations: 0 / 0.5124 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.712e-05/0.7367, allocations: 22.42 kB / 0.5124 GB, free: 6.797 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.7372, allocations: 58.48 kB / 0.5125 GB, free: 6.785 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.7385, allocations: 362 kB / 0.5128 GB, free: 6.508 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.7387, allocations: 0.727 MB / 0.5135 GB, free: 5.785 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.218e-05/0.7388, allocations: 12.73 kB / 0.5136 GB, free: 5.777 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.707e-05/0.7389, allocations: 44.64 kB / 0.5136 GB, free: 5.766 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7389, allocations: 0 / 0.5136 GB, free: 5.766 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.7665, allocations: 2.604 MB / 0.5161 GB, free: 4.41 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/0.7668, allocations: 205 kB / 0.5163 GB, free: 4.191 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.325, allocations: 4 kB / 0.5163 GB, free: 4.188 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat