Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001052/0.001051, allocations: 97.55 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001127, allocations: 206.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002179/0.0002179, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1082, allocations: 51.48 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002518/0.1107, allocations: 1.657 MB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.1118, allocations: 0.5342 MB / 360.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.112, allocations: 7.938 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.689e-05/0.1121, allocations: 15.86 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.1123, allocations: 23.94 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.1126, allocations: 51.81 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.1128, allocations: 79.84 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.113, allocations: 56.88 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.1131, allocations: 39.84 kB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.434e-05/0.1132, allocations: 39.78 kB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.1132, allocations: 8 kB / 360.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.057e-05/0.1132, allocations: 4 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.1133, allocations: 15.92 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.252e-05/0.1133, allocations: 45.64 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.1135, allocations: 88.02 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1135, allocations: 0 / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1135, allocations: 0 / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1135, allocations: 4 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000713/0.1142, allocations: 419.6 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.1143, allocations: 8.031 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.021e-05/0.1144, allocations: 42.56 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.1144, allocations: 15.81 kB / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.1147, allocations: 206.2 kB / 361.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.1147, allocations: 12 kB / 361.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.811e-05/0.1148, allocations: 19.95 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.1153, allocations: 243.1 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1154, allocations: 0 / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.1154, allocations: 4 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1154, allocations: 4 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.1157, allocations: 99.88 kB / 361.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007507/0.1165, allocations: 0.592 MB / 362.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.1168, allocations: 147.6 kB / 362.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.1169, allocations: 12.12 kB / 362.6 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1169, allocations: 38.64 kB / 362.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.1169, allocations: 4 kB / 362.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005381/0.1175, allocations: 201.7 kB / 362.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.525e-05/0.1175, allocations: 114.8 kB / 363 MB, free: 8.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.1177, allocations: 132.6 kB / 363.1 MB, free: 8.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1177, allocations: 25.7 kB / 363.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.07e-05/0.1178, allocations: 111.9 kB / 363.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.1178, allocations: 23.73 kB / 363.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-06/0.1178, allocations: 8 kB / 363.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1179, allocations: 322.9 kB / 363.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.1181, allocations: 44.34 kB / 363.7 MB, free: 8.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1182, allocations: 141.4 kB / 363.8 MB, free: 7.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.1184, allocations: 63.91 kB / 363.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1184, allocations: 4 kB / 363.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003734/0.1188, allocations: 201.3 kB / 364.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1188, allocations: 8 kB / 364.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1188, allocations: 4 kB / 364.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1189, allocations: 7.953 kB / 364.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.119, allocations: 51.91 kB / 364.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.119, allocations: 8 kB / 364.1 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1192, allocations: 24.08 kB / 364.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.1192, allocations: 12 kB / 364.2 MB, free: 7.449 MB / 302.1 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.0001094/0.1193, allocations: 129.7 kB / 364.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.1194, allocations: 89.53 kB / 364.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.614e-05/0.1195, allocations: 20.7 kB / 364.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1196, allocations: 7.953 kB / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1196, allocations: 0 / 364.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1196, allocations: 4 kB / 364.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.1198, allocations: 197.6 kB / 364.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1199, allocations: 4 kB / 364.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.12, allocations: 43.91 kB / 364.7 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1201, allocations: 4 kB / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.1201, allocations: 0 / 364.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.3e-05/0.1201, allocations: 4 kB / 364.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1201, allocations: 7.891 kB / 364.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005463/0.1206, allocations: 426.7 kB / 365.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.1207, allocations: 89.08 kB / 365.2 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1207, allocations: 11.89 kB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/0.1209, allocations: 11.98 kB / 365.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.1209, allocations: 8 kB / 365.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.1209, allocations: 4 kB / 365.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.364e-05/0.121, allocations: 97.52 kB / 365.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.121, allocations: 0 / 365.3 MB, free: 6.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.1214, allocations: 35.97 kB / 365.3 MB, free: 6.156 MB / 302.1 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.0008926/0.1223, allocations: 1.09 MB / 366.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003194/0.1226, allocations: 131.8 kB / 366.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1226, allocations: 0 / 366.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.925e-05/0.1227, allocations: 36.92 kB / 366.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.1231, allocations: 51.94 kB / 366.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.1255, allocations: 3.254 MB / 369.9 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.1258, allocations: 0.7203 MB / 370.6 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.762e-05/0.1258, allocations: 9.078 kB / 370.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.391e-05/0.1259, allocations: 39.36 kB / 370.7 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1259, allocations: 0 / 370.7 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1894/0.3154, allocations: 2.396 MB / 373.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/0.3156, allocations: 211.8 kB / 373.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.122, allocations: 0 / 373.3 MB, free: 18.82 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat