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.00156/0.001559, allocations: 181.3 kB / 15.8 MB, free: 6.336 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.121/2.121, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001211/0.00121, allocations: 94.86 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09981/0.09981, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009766/0.0009759, allocations: 21.06 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.09966, allocations: 50.37 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.2468, allocations: 80.15 MB / 0.5104 GB, free: 10.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.2471, allocations: 75.95 kB / 0.5104 GB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01182/0.2589, allocations: 2.697 MB / 0.5131 GB, free: 7.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.259, allocations: 4 kB / 0.5131 GB, free: 7.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.259, allocations: 4 kB / 0.5131 GB, free: 7.812 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008193/0.2599, allocations: 442.7 kB / 0.5135 GB, free: 7.332 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.2599, allocations: 12.03 kB / 0.5135 GB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.561e-05/0.26, allocations: 46.73 kB / 0.5136 GB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.2601, allocations: 19.72 kB / 0.5136 GB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.2604, allocations: 210.8 kB / 0.5138 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.2604, allocations: 8 kB / 0.5138 GB, free: 6.992 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.2605, allocations: 15.94 kB / 0.5138 GB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007493/0.2612, allocations: 254.6 kB / 0.5141 GB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.2613, allocations: 0 / 0.5141 GB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2613, allocations: 8 kB / 0.5141 GB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2613, allocations: 4 kB / 0.5141 GB, free: 6.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.2618, allocations: 107.8 kB / 0.5142 GB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009655/0.2628, allocations: 0.5959 MB / 0.5147 GB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005456/0.2633, allocations: 151.7 kB / 0.5149 GB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.2634, allocations: 4.094 kB / 0.5149 GB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.2635, allocations: 50.62 kB / 0.5149 GB, free: 5.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 3.186e-06/0.2635, allocations: 3.938 kB / 0.5149 GB, free: 5.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008688/0.2643, allocations: 197.4 kB / 0.5151 GB, free: 5.473 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.672e-05/0.2645, allocations: 111.2 kB / 0.5152 GB, free: 5.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/0.2647, allocations: 141.3 kB / 0.5154 GB, free: 5.195 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.2647, allocations: 33.64 kB / 0.5154 GB, free: 5.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.879e-05/0.2648, allocations: 116.4 kB / 0.5155 GB, free: 5.039 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.2649, allocations: 31.77 kB / 0.5156 GB, free: 5.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.2649, allocations: 4 kB / 0.5156 GB, free: 5.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2651, allocations: 318.8 kB / 0.5159 GB, free: 4.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.2653, allocations: 44.34 kB / 0.5159 GB, free: 4.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.2656, allocations: 138.8 kB / 0.516 GB, free: 4.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.2658, allocations: 67.97 kB / 0.5161 GB, free: 4.387 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.2659, allocations: 0 / 0.5161 GB, free: 4.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006664/0.2665, allocations: 201.2 kB / 0.5163 GB, free: 4.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.2666, allocations: 8 kB / 0.5163 GB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.2666, allocations: 7.953 kB / 0.5163 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.2666, allocations: 4 kB / 0.5163 GB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.2669, allocations: 51.91 kB / 0.5164 GB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.267, allocations: 8.469 kB / 0.5164 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.2672, allocations: 27.83 kB / 0.5164 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.2672, allocations: 12 kB / 0.5164 GB, free: 4.066 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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 0.0001785/0.2674, allocations: 129.6 kB / 0.5165 GB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.2676, allocations: 97.42 kB / 0.5166 GB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.2678, allocations: 16.72 kB / 0.5166 GB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.2678, allocations: 3.953 kB / 0.5166 GB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2678, allocations: 4 kB / 0.5166 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2678, allocations: 4 kB / 0.5166 GB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003867/0.2682, allocations: 217.5 kB / 0.5169 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.2682, allocations: 0 / 0.5169 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.2686, allocations: 43.92 kB / 0.5169 GB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.351e-06/0.2686, allocations: 0 / 0.5169 GB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.2686, allocations: 7.984 kB / 0.5169 GB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2686, allocations: 0 / 0.5169 GB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.2686, allocations: 3.953 kB / 0.5169 GB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009153/0.2696, allocations: 414.9 kB / 0.5173 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.2697, allocations: 108.8 kB / 0.5174 GB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.2698, allocations: 11.94 kB / 0.5174 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.27, allocations: 15.98 kB / 0.5174 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.2701, allocations: 4.031 kB / 0.5174 GB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.2701, allocations: 7.938 kB / 0.5174 GB, free: 2.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.2702, allocations: 123.3 kB / 0.5176 GB, free: 2.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2702, allocations: 0 / 0.5176 GB, free: 2.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.2708, allocations: 24 kB / 0.5176 GB, free: 2.734 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.001382/0.2721, allocations: 1.096 MB / 0.5187 GB, free: 1.602 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005686/0.2728, allocations: 139.8 kB / 0.5188 GB, free: 1.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2728, allocations: 0.9375 kB / 0.5188 GB, free: 1.465 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.273, allocations: 35.97 kB / 0.5188 GB, free: 1.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.2735, allocations: 59.81 kB / 0.5189 GB, free: 1.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2785/0.552, allocations: 3.305 MB / 0.5221 GB, free: 83.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.5523, allocations: 0.7228 MB / 0.5228 GB, free: 82.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.5524, allocations: 16.08 kB / 0.5228 GB, free: 82.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.5525, allocations: 37.83 kB / 0.5229 GB, free: 82.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.664e-06/0.5525, allocations: 0 / 0.5229 GB, free: 82.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.58, allocations: 2.608 MB / 0.5254 GB, free: 82.46 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002686/0.5803, allocations: 227.4 kB / 0.5256 GB, free: 82.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/2.993, allocations: 0 / 0.5256 GB, free: 82.22 MB / 362.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