Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001654/0.001654, allocations: 181.7 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.209/2.209, allocations: 205.2 MB / 219 MB, free: 9.133 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.001139/0.001139, allocations: 85.31 kB / 267.1 MB, free: 9.254 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.1118/0.1118, allocations: 12.59 MB / 327.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.736e-05, allocations: 11.98 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5026/0.6031, allocations: 79.86 MB / 0.5042 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003665/0.6035, allocations: 74.66 kB / 0.5043 GB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009977/0.6135, allocations: 2.31 MB / 0.5066 GB, free: 11.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.6136, allocations: 0 / 0.5066 GB, free: 11.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.6136, allocations: 5.812 kB / 0.5066 GB, free: 11.28 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006655/0.6143, allocations: 408 kB / 0.5069 GB, free: 10.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.6144, allocations: 15.36 kB / 0.507 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.013e-05/0.6144, allocations: 44.94 kB / 0.507 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.6145, allocations: 15.66 kB / 0.507 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.6148, allocations: 201.2 kB / 0.5072 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.6148, allocations: 15.11 kB / 0.5072 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.6148, allocations: 18.38 kB / 0.5072 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.6154, allocations: 214.8 kB / 0.5074 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.6154, allocations: 0 / 0.5074 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.6154, allocations: 3 kB / 0.5075 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.6155, allocations: 3.844 kB / 0.5075 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.6157, allocations: 63.89 kB / 0.5075 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000766/0.6164, allocations: 0.5968 MB / 0.5081 GB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.6167, allocations: 131.5 kB / 0.5082 GB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.6169, allocations: 63.97 kB / 0.5083 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.6169, allocations: 3.656 kB / 0.5083 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.617, allocations: 46.27 kB / 0.5083 GB, free: 9.746 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.685e-06/0.617, allocations: 7.781 kB / 0.5083 GB, free: 9.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003593/0.6173, allocations: 110.1 kB / 0.5084 GB, free: 9.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.6174, allocations: 109.9 kB / 0.5085 GB, free: 9.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.6176, allocations: 120.5 kB / 0.5087 GB, free: 9.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.6176, allocations: 28.45 kB / 0.5087 GB, free: 9.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.838e-05/0.6177, allocations: 106.3 kB / 0.5088 GB, free: 9.336 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.6177, allocations: 30.08 kB / 0.5088 GB, free: 9.316 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.001e-05/0.6177, allocations: 3.375 kB / 0.5088 GB, free: 9.316 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.972e-05/0.6178, allocations: 326.3 kB / 0.5091 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.834e-05/0.6179, allocations: 22.31 kB / 0.5092 GB, free: 8.996 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.618, allocations: 117.2 kB / 0.5093 GB, free: 8.871 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.6181, allocations: 38.83 kB / 0.5093 GB, free: 8.859 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.6182, allocations: 7.797 kB / 0.5093 GB, free: 8.855 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003492/0.6185, allocations: 161.5 kB / 0.5095 GB, free: 8.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.6185, allocations: 3.562 kB / 0.5095 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.6186, allocations: 3.688 kB / 0.5095 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.6186, allocations: 7.375 kB / 0.5095 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.619, allocations: 49.94 kB / 0.5095 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.619, allocations: 3.844 kB / 0.5095 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.6192, allocations: 19.47 kB / 0.5096 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.6192, allocations: 15.31 kB / 0.5096 GB, free: 8.762 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001014/0.6193, allocations: 116.2 kB / 0.5097 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.6196, allocations: 91 kB / 0.5098 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.91e-05/0.6197, allocations: 15.09 kB / 0.5098 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.6197, allocations: 0 / 0.5098 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.6197, allocations: 3.844 kB / 0.5098 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.6197, allocations: 0 / 0.5098 GB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003325/0.6201, allocations: 205.6 kB / 0.51 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.6201, allocations: 0 / 0.51 GB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.6204, allocations: 49.81 kB / 0.51 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.6205, allocations: 3.984 kB / 0.51 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.6205, allocations: 11.38 kB / 0.51 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.6205, allocations: 0 / 0.51 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.6205, allocations: 3.844 kB / 0.51 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.621, allocations: 354.5 kB / 0.5104 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.6211, allocations: 88.86 kB / 0.5105 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.103e-05/0.6211, allocations: 4 kB / 0.5105 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.6213, allocations: 15.08 kB / 0.5105 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.6214, allocations: 11.73 kB / 0.5105 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.6214, allocations: 4 kB / 0.5105 GB, free: 7.969 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.645e-05/0.6215, allocations: 100.4 kB / 0.5106 GB, free: 7.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6215, allocations: 0 / 0.5106 GB, free: 7.891 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004457/0.622, allocations: 33.84 kB / 0.5106 GB, free: 7.887 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 (14): * Single equations (assignments): 14 * 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.0006996/0.6227, allocations: 1.034 MB / 0.5116 GB, free: 6.949 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002962/0.623, allocations: 86 kB / 0.5117 GB, free: 6.938 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.623, allocations: 0 / 0.5117 GB, free: 6.938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.549e-05/0.6231, allocations: 19.59 kB / 0.5117 GB, free: 6.934 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005416/0.6237, allocations: 58.06 kB / 0.5118 GB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.6248, allocations: 331.2 kB / 0.5121 GB, free: 6.652 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.625, allocations: 0.723 MB / 0.5128 GB, free: 5.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.057e-05/0.6251, allocations: 12.42 kB / 0.5128 GB, free: 5.926 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.153e-05/0.6252, allocations: 35.52 kB / 0.5129 GB, free: 5.914 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6252, allocations: 4 kB / 0.5129 GB, free: 5.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02704/0.6523, allocations: 2.375 MB / 0.5152 GB, free: 4.676 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002363/0.6526, allocations: 207.4 kB / 0.5154 GB, free: 4.449 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/3.1, allocations: 3.938 kB / 0.5154 GB, free: 4.445 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat