Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001558/0.001557, allocations: 181.6 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.166/2.166, allocations: 205.2 MB / 219 MB, free: 9.203 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.00116/0.001159, allocations: 90.59 kB / 267.1 MB, free: 9.273 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.111/0.111, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.976e-05/4.995e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 50.37 MB / 436.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4731/0.6132, allocations: 80.07 MB / 0.5044 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.6135, allocations: 74.05 kB / 0.5045 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01098/0.6245, allocations: 2.685 MB / 0.5071 GB, free: 11.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6246, allocations: 0 / 0.5071 GB, free: 11.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.6246, allocations: 3.781 kB / 0.5071 GB, free: 11.16 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006736/0.6253, allocations: 426.4 kB / 0.5075 GB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.6254, allocations: 15.28 kB / 0.5075 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.6254, allocations: 44.98 kB / 0.5076 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.138e-05/0.6255, allocations: 15.5 kB / 0.5076 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.6258, allocations: 205.6 kB / 0.5078 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.6258, allocations: 13.19 kB / 0.5078 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.957e-05/0.6258, allocations: 10.62 kB / 0.5078 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.6264, allocations: 239.2 kB / 0.5081 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.6264, allocations: 0 / 0.5081 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.6265, allocations: 7.281 kB / 0.5081 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.6265, allocations: 3.75 kB / 0.5081 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.6267, allocations: 62.06 kB / 0.5081 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007392/0.6274, allocations: 0.6013 MB / 0.5087 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.6278, allocations: 132.9 kB / 0.5088 GB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.628, allocations: 67.92 kB / 0.5089 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.628, allocations: 15.2 kB / 0.5089 GB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.628, allocations: 34.56 kB / 0.5089 GB, free: 9.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.345e-06/0.628, allocations: 0 / 0.5089 GB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003656/0.6284, allocations: 119.8 kB / 0.5091 GB, free: 9.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.385e-05/0.6285, allocations: 118.3 kB / 0.5092 GB, free: 9.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.6287, allocations: 140.1 kB / 0.5093 GB, free: 9.328 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.6287, allocations: 29.64 kB / 0.5093 GB, free: 9.297 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.6288, allocations: 107.1 kB / 0.5094 GB, free: 9.199 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.6288, allocations: 41.86 kB / 0.5095 GB, free: 9.176 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.6288, allocations: 7.531 kB / 0.5095 GB, free: 9.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/0.6289, allocations: 322.4 kB / 0.5098 GB, free: 8.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.184e-05/0.629, allocations: 22.22 kB / 0.5098 GB, free: 8.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.6292, allocations: 123.5 kB / 0.5099 GB, free: 8.719 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.6293, allocations: 46.2 kB / 0.51 GB, free: 8.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6293, allocations: 3.812 kB / 0.51 GB, free: 8.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003291/0.6296, allocations: 167.1 kB / 0.5101 GB, free: 8.629 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.6297, allocations: 11.61 kB / 0.5101 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.6297, allocations: 3.875 kB / 0.5102 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.6297, allocations: 3.844 kB / 0.5102 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.6301, allocations: 50.19 kB / 0.5102 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.6301, allocations: 4.281 kB / 0.5102 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.6303, allocations: 31.27 kB / 0.5102 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.6303, allocations: 7.688 kB / 0.5102 GB, free: 8.598 MB / 330.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 8.203e-05/0.6304, allocations: 119.7 kB / 0.5104 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.6306, allocations: 94.56 kB / 0.5105 GB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.6307, allocations: 23.84 kB / 0.5105 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.6307, allocations: 3.875 kB / 0.5105 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.6307, allocations: 0 / 0.5105 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.6308, allocations: 4 kB / 0.5105 GB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.6311, allocations: 210.9 kB / 0.5107 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.6311, allocations: 3.844 kB / 0.5107 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003341/0.6315, allocations: 38.12 kB / 0.5107 GB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.6315, allocations: 4.031 kB / 0.5107 GB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.6315, allocations: 4 kB / 0.5107 GB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.6315, allocations: 11.7 kB / 0.5107 GB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.6315, allocations: 3.938 kB / 0.5107 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004518/0.632, allocations: 367.3 kB / 0.5111 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.734e-05/0.6321, allocations: 107.8 kB / 0.5112 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.6322, allocations: 0 / 0.5112 GB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.6324, allocations: 15.23 kB / 0.5112 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.6324, allocations: 7.844 kB / 0.5112 GB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.6325, allocations: 7.859 kB / 0.5112 GB, free: 7.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.6326, allocations: 116.5 kB / 0.5113 GB, free: 7.719 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.6326, allocations: 0 / 0.5113 GB, free: 7.719 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004914/0.6331, allocations: 34.75 kB / 0.5114 GB, free: 7.711 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.0006925/0.6338, allocations: 1.039 MB / 0.5124 GB, free: 6.773 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.6341, allocations: 90.72 kB / 0.5125 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6341, allocations: 0 / 0.5125 GB, free: 6.766 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.477e-05/0.6342, allocations: 26.95 kB / 0.5125 GB, free: 6.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.6347, allocations: 56.77 kB / 0.5126 GB, free: 6.742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.6358, allocations: 366.3 kB / 0.5129 GB, free: 6.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.6361, allocations: 0.7272 MB / 0.5136 GB, free: 5.734 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.975e-05/0.6362, allocations: 9.062 kB / 0.5136 GB, free: 5.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.841e-05/0.6363, allocations: 40.98 kB / 0.5137 GB, free: 5.719 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.6363, allocations: 0 / 0.5137 GB, free: 5.719 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.6629, allocations: 2.603 MB / 0.5162 GB, free: 4.371 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.6632, allocations: 210.7 kB / 0.5164 GB, free: 4.137 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.421/3.085, allocations: 0 / 0.5164 GB, free: 4.137 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat