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.00149/0.00149, allocations: 176.1 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008656/0.0008656, allocations: 90.28 kB / 270.3 MB, free: 13.38 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07672/0.07672, allocations: 12.59 MB / 331.2 MB, free: 10.31 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004209, allocations: 16.33 kB / 392.1 MB, free: 54.81 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.106, allocations: 50.39 MB / 442.5 MB, free: 10.87 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002056/0.1082, allocations: 1.709 MB / 444.2 MB, free: 9.148 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006908/0.1089, allocations: 0.5194 MB / 444.7 MB, free: 8.621 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.109, allocations: 7.938 kB / 444.7 MB, free: 8.613 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 9.363e-05/0.1091, allocations: 7.922 kB / 444.7 MB, free: 8.605 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 5.287e-05/0.1091, allocations: 23.78 kB / 444.8 MB, free: 8.582 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.1094, allocations: 39.95 kB / 444.8 MB, free: 8.543 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.1095, allocations: 119.5 kB / 444.9 MB, free: 8.426 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.1097, allocations: 45.45 kB / 445 MB, free: 8.379 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.914e-05/0.1099, allocations: 39.8 kB / 445 MB, free: 8.34 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.1099, allocations: 43.72 kB / 445 MB, free: 8.297 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.11, allocations: 8 kB / 445.1 MB, free: 8.289 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.846e-05/0.11, allocations: 4 kB / 445.1 MB, free: 8.285 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.11, allocations: 27.91 kB / 445.1 MB, free: 8.258 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.11, allocations: 41.64 kB / 445.1 MB, free: 8.211 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 9.404e-05/0.1101, allocations: 84.61 kB / 445.2 MB, free: 8.129 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.1102, allocations: 0 / 445.2 MB, free: 8.129 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1102, allocations: 0 / 445.2 MB, free: 8.129 MB / 282.8 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1102, allocations: 4 kB / 445.2 MB, free: 8.125 MB / 282.8 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.0004771/0.1107, allocations: 418.9 kB / 445.6 MB, free: 7.668 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1107, allocations: 12.03 kB / 445.6 MB, free: 7.656 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.1107, allocations: 42.55 kB / 445.7 MB, free: 7.605 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.1108, allocations: 15.81 kB / 445.7 MB, free: 7.59 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.1109, allocations: 210.7 kB / 445.9 MB, free: 7.344 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.111, allocations: 8 kB / 445.9 MB, free: 7.336 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.111, allocations: 12 kB / 445.9 MB, free: 7.324 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.1114, allocations: 234.6 kB / 446.1 MB, free: 7.07 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1115, allocations: 0 / 446.1 MB, free: 7.07 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1115, allocations: 0 / 446.1 MB, free: 7.07 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1115, allocations: 4 kB / 446.2 MB, free: 7.066 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.1117, allocations: 107.8 kB / 446.3 MB, free: 6.961 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.1123, allocations: 0.6036 MB / 446.9 MB, free: 6.281 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.1126, allocations: 147.9 kB / 447 MB, free: 6.109 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.1128, allocations: 74.64 kB / 447.1 MB, free: 6.027 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.1128, allocations: 4 kB / 447.1 MB, free: 6.023 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.1128, allocations: 50.42 kB / 447.1 MB, free: 5.965 MB / 282.8 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.1128, allocations: 0 / 447.1 MB, free: 5.965 MB / 282.8 MB Notification: Performance of matching and sorting (n=14): time 0.0004598/0.1133, allocations: 193.4 kB / 447.3 MB, free: 5.77 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.1134, allocations: 110.8 kB / 447.4 MB, free: 5.637 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.1135, allocations: 138.1 kB / 447.6 MB, free: 5.488 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1135, allocations: 29.7 kB / 447.6 MB, free: 5.453 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.296e-05/0.1135, allocations: 115.9 kB / 447.7 MB, free: 5.336 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.1135, allocations: 27.64 kB / 447.7 MB, free: 5.309 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.1136, allocations: 8 kB / 447.7 MB, free: 5.301 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.1136, allocations: 326.8 kB / 448.1 MB, free: 4.973 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1138, allocations: 44.34 kB / 448.1 MB, free: 4.93 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.1139, allocations: 146.4 kB / 448.2 MB, free: 4.738 MB / 282.8 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.0003086/0.1142, allocations: 153.1 kB / 448.4 MB, free: 4.57 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1143, allocations: 0 / 448.4 MB, free: 4.57 MB / 282.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003208/0.1146, allocations: 201.2 kB / 448.6 MB, free: 4.367 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1146, allocations: 7.984 kB / 448.6 MB, free: 4.359 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1146, allocations: 4 kB / 448.6 MB, free: 4.355 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.1146, allocations: 4 kB / 448.6 MB, free: 4.352 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.1148, allocations: 52.39 kB / 448.7 MB, free: 4.301 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1148, allocations: 7.984 kB / 448.7 MB, free: 4.293 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1149, allocations: 19.91 kB / 448.7 MB, free: 4.273 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.1149, allocations: 12 kB / 448.7 MB, free: 4.262 MB / 282.8 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 () * 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 8.91e-05/0.115, allocations: 137.5 kB / 448.8 MB, free: 4.117 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.1152, allocations: 93.42 kB / 448.9 MB, free: 4.02 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.1152, allocations: 16.72 kB / 448.9 MB, free: 4.004 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1152, allocations: 4 kB / 448.9 MB, free: 4 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1152, allocations: 4.234 kB / 448.9 MB, free: 3.996 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1152, allocations: 480 / 448.9 MB, free: 3.996 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.1155, allocations: 221.5 kB / 449.2 MB, free: 3.73 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1155, allocations: 3.984 kB / 449.2 MB, free: 3.727 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.1157, allocations: 43.91 kB / 449.2 MB, free: 3.684 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1157, allocations: 4 kB / 449.2 MB, free: 3.68 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.1157, allocations: 7.938 kB / 449.2 MB, free: 3.672 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1157, allocations: 4 kB / 449.2 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-06/0.1157, allocations: 0 / 449.2 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.1162, allocations: 395.4 kB / 449.6 MB, free: 3.262 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.626e-05/0.1163, allocations: 96.88 kB / 449.7 MB, free: 3.148 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.1163, allocations: 4 kB / 449.7 MB, free: 3.145 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.1165, allocations: 15.92 kB / 449.7 MB, free: 3.129 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.1165, allocations: 4 kB / 449.7 MB, free: 3.125 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.375e-06/0.1165, allocations: 7.984 kB / 449.7 MB, free: 3.117 MB / 282.8 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.1166, allocations: 103.3 kB / 449.8 MB, free: 3.016 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1166, allocations: 4.062 kB / 449.8 MB, free: 3.012 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.000292/0.1169, allocations: 24 kB / 449.9 MB, free: 2.988 MB / 282.8 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.0005912/0.1175, allocations: 0.9271 MB / 450.8 MB, free: 2.027 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0002997/0.1178, allocations: 131.8 kB / 450.9 MB, free: 1.898 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1178, allocations: 0 / 450.9 MB, free: 1.898 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 9.23e-05/0.1179, allocations: 32.91 kB / 451 MB, free: 1.867 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.1184, allocations: 68 kB / 451 MB, free: 1.801 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.1198, allocations: 1.071 MB / 452.1 MB, free: 0.6289 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.12, allocations: 0.7128 MB / 452.8 MB, free: 15.89 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 5.273e-05/0.1201, allocations: 17.08 kB / 452.8 MB, free: 15.88 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.78e-05/0.1202, allocations: 39.36 kB / 452.9 MB, free: 15.84 MB / 298.8 MB Notification: Performance of SimCode: time 5.91e-07/0.1202, allocations: 0 / 452.9 MB, free: 15.84 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.1352, allocations: 2.624 MB / 455.5 MB, free: 13.22 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/0.1354, allocations: 242.4 kB / 455.7 MB, free: 12.94 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.823, allocations: 0 / 455.7 MB, free: 12.94 MB / 298.8 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