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.00221/0.002215, allocations: 184 kB / 15.81 MB, free: 6.348 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.475/2.475, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001242/0.001242, allocations: 90.88 kB / 270.3 MB, free: 13.36 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.1036/0.1036, allocations: 12.61 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005406/0.0005409, allocations: 13.94 kB / 392.1 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09073, allocations: 50.38 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002416/0.0932, allocations: 1.659 MB / 444.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.09435, allocations: 0.5895 MB / 444.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.09448, allocations: 4 kB / 444.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.613e-05/0.09455, allocations: 11.86 kB / 444.7 MB, free: 8.574 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.09476, allocations: 39.88 kB / 444.8 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.09512, allocations: 47.89 kB / 444.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.09529, allocations: 91.77 kB / 444.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.09545, allocations: 41.52 kB / 445 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.637e-05/0.09554, allocations: 43.78 kB / 445 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.307e-05/0.09564, allocations: 55.7 kB / 445.1 MB, free: 8.258 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.09567, allocations: 4 kB / 445.1 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.691e-05/0.09571, allocations: 4 kB / 445.1 MB, free: 8.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.591e-05/0.09576, allocations: 27.91 kB / 445.1 MB, free: 8.223 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.176e-05/0.09581, allocations: 49.64 kB / 445.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.09596, allocations: 100.5 kB / 445.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.09597, allocations: 0 / 445.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.09599, allocations: 0 / 445.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.096, allocations: 0 / 445.2 MB, free: 8.07 MB / 282.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.0006533/0.09666, allocations: 438.7 kB / 445.7 MB, free: 7.594 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.552e-05/0.09674, allocations: 8.031 kB / 445.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.0968, allocations: 42.56 kB / 445.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.09685, allocations: 19.72 kB / 445.7 MB, free: 7.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.09708, allocations: 214.7 kB / 445.9 MB, free: 7.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.09711, allocations: 12 kB / 446 MB, free: 7.254 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.09715, allocations: 12 kB / 446 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006128/0.09778, allocations: 266.4 kB / 446.2 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.09781, allocations: 0 / 446.2 MB, free: 6.957 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.09784, allocations: 4 kB / 446.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.09785, allocations: 4 kB / 446.2 MB, free: 6.949 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003915/0.09825, allocations: 99.86 kB / 446.3 MB, free: 6.852 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006586/0.09892, allocations: 0.5998 MB / 446.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004494/0.09939, allocations: 151.8 kB / 447.1 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.09944, allocations: 4.094 kB / 447.1 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.09947, allocations: 42.55 kB / 447.1 MB, free: 5.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 1.903e-06/0.09948, allocations: 0 / 447.1 MB, free: 5.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007287/0.1002, allocations: 193.4 kB / 447.3 MB, free: 5.754 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.1003, allocations: 114.9 kB / 447.4 MB, free: 5.617 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.1004, allocations: 158.6 kB / 447.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.1005, allocations: 29.64 kB / 447.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.1005, allocations: 116.4 kB / 447.7 MB, free: 5.301 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1006, allocations: 27.64 kB / 447.7 MB, free: 5.273 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/0.1006, allocations: 7.938 kB / 447.8 MB, free: 5.266 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.178e-05/0.1007, allocations: 322.8 kB / 448.1 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.1009, allocations: 44.34 kB / 448.1 MB, free: 4.898 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.1011, allocations: 142.4 kB / 448.3 MB, free: 4.711 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.1013, allocations: 68.09 kB / 448.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1013, allocations: 0 / 448.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005255/0.1019, allocations: 205.5 kB / 448.5 MB, free: 4.438 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1019, allocations: 12.09 kB / 448.5 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1019, allocations: 4 kB / 448.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.1019, allocations: 4 kB / 448.5 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.1022, allocations: 47.91 kB / 448.6 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1022, allocations: 4 kB / 448.6 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.1024, allocations: 27.83 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1024, allocations: 8 kB / 448.6 MB, free: 4.332 MB / 282.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.0001224/0.1026, allocations: 145.5 kB / 448.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/0.1028, allocations: 93.39 kB / 448.9 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.1029, allocations: 20.7 kB / 448.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1029, allocations: 4 kB / 448.9 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1029, allocations: 4 kB / 448.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.103, allocations: 4 kB / 448.9 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003031/0.1033, allocations: 209.6 kB / 449.1 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1033, allocations: 3.984 kB / 449.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.1036, allocations: 39.92 kB / 449.1 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1036, allocations: 7.953 kB / 449.1 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1037, allocations: 4 kB / 449.1 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.1037, allocations: 4 kB / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.1037, allocations: 0 / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007225/0.1044, allocations: 422.7 kB / 449.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.507e-05/0.1045, allocations: 104.9 kB / 449.7 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.1046, allocations: 12.06 kB / 449.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.1048, allocations: 4 kB / 449.7 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.1049, allocations: 7.984 kB / 449.7 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.1049, allocations: 8 kB / 449.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.311e-05/0.105, allocations: 115.2 kB / 449.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.105, allocations: 96 / 449.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004397/0.1055, allocations: 39.88 kB / 449.9 MB, free: 2.988 MB / 282.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.0009339/0.1064, allocations: 1.091 MB / 450.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004757/0.1069, allocations: 132.1 kB / 451.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1069, allocations: 0 / 451.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.1071, allocations: 32.59 kB / 451.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.1076, allocations: 63.86 kB / 451.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/0.1106, allocations: 3.307 MB / 454.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.1111, allocations: 0.7283 MB / 455.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.63e-05/0.1112, allocations: 13.41 kB / 455.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.1113, allocations: 43.42 kB / 455.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1113, allocations: 0 / 455.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.133, allocations: 2.583 MB / 457.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003801/0.1335, allocations: 244.5 kB / 458.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/2.66, allocations: 3.906 kB / 458.1 MB, free: 10.56 MB / 298.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