Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 95.67 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.001089/0.001089, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002597, allocations: 8 kB / 306.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1111, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002713/0.1139, allocations: 1.657 MB / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009987/0.1149, allocations: 0.5147 MB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1151, allocations: 3.938 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.485e-05/0.1151, allocations: 7.922 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.1152, allocations: 19.97 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1155, allocations: 59.31 kB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.1157, allocations: 75.84 kB / 360.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.1159, allocations: 44.94 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.797e-05/0.116, allocations: 39.84 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.846e-05/0.116, allocations: 43.78 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.1161, allocations: 4 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.726e-05/0.1161, allocations: 7.938 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.646e-05/0.1161, allocations: 19.92 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.56e-05/0.1162, allocations: 45.64 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.1163, allocations: 84.03 kB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1163, allocations: 4 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1163, allocations: 3.938 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1163, allocations: 3.938 kB / 360.8 MB, free: 11.16 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000618/0.117, allocations: 417.3 kB / 361.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.117, allocations: 12.03 kB / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.222e-05/0.1171, allocations: 46.56 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.1171, allocations: 15.81 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.1174, allocations: 202.8 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1174, allocations: 8 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.1175, allocations: 15.95 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005244/0.118, allocations: 234.6 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.118, allocations: 7.984 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.118, allocations: 4 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1181, allocations: 4 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002609/0.1183, allocations: 95.88 kB / 361.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006628/0.119, allocations: 0.5882 MB / 362.4 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.1193, allocations: 156.1 kB / 362.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.1193, allocations: 0 / 362.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1194, allocations: 34.56 kB / 362.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.1194, allocations: 0 / 362.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005507/0.1199, allocations: 197.3 kB / 362.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.12, allocations: 114.9 kB / 362.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.1202, allocations: 132.5 kB / 363.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1202, allocations: 29.7 kB / 363.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.1203, allocations: 112 kB / 363.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.1203, allocations: 23.66 kB / 363.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.1203, allocations: 4 kB / 363.2 MB, free: 8.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1205, allocations: 326.8 kB / 363.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1206, allocations: 48.28 kB / 363.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.1208, allocations: 128.8 kB / 363.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.1209, allocations: 59.92 kB / 363.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1209, allocations: 0 / 363.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003657/0.1213, allocations: 205.1 kB / 364 MB, free: 7.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.1213, allocations: 8 kB / 364 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1213, allocations: 0 / 364 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1214, allocations: 8.438 kB / 364 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.1216, allocations: 51.92 kB / 364 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.1216, allocations: 7.984 kB / 364.1 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1217, allocations: 15.84 kB / 364.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1217, allocations: 12 kB / 364.1 MB, free: 7.547 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.00012/0.1218, allocations: 129.7 kB / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.122, allocations: 89.39 kB / 364.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.265e-05/0.1221, allocations: 24.7 kB / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1221, allocations: 0 / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1221, allocations: 0 / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1221, allocations: 4 kB / 364.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.1224, allocations: 201.6 kB / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1224, allocations: 0 / 364.5 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.1226, allocations: 31.98 kB / 364.5 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.1226, allocations: 3.953 kB / 364.6 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.1226, allocations: 8.219 kB / 364.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1226, allocations: 3.938 kB / 364.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1226, allocations: 4 kB / 364.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.1232, allocations: 414.9 kB / 365 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.1233, allocations: 88.86 kB / 365.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.1233, allocations: 12 kB / 365.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1234, allocations: 11.98 kB / 365.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/0.1235, allocations: 8.047 kB / 365.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1235, allocations: 4 kB / 365.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.152e-05/0.1236, allocations: 101.7 kB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1236, allocations: 3.938 kB / 365.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.1239, allocations: 24 kB / 365.2 MB, free: 6.281 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 (14): * Single equations (assignments): 14 * 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.0008905/0.1248, allocations: 1.095 MB / 366.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.1252, allocations: 124.6 kB / 366.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1252, allocations: 3.938 kB / 366.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.867e-05/0.1253, allocations: 35.92 kB / 366.5 MB, free: 4.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.1257, allocations: 51.56 kB / 366.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.1282, allocations: 3.087 MB / 369.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.1285, allocations: 0.7162 MB / 370.3 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.807e-05/0.1286, allocations: 12.59 kB / 370.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.1287, allocations: 39.48 kB / 370.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1287, allocations: 0 / 370.4 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1936/0.3223, allocations: 2.347 MB / 372.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/0.3225, allocations: 222.8 kB / 372.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/2.103, allocations: 0 / 372.9 MB, free: 18.85 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat