Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000857/0.0008569, allocations: 100.3 kB / 17 MB, free: 6.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009573/0.0009574, allocations: 188 kB / 17.9 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 227.4 MB / 246 MB, free: 11.95 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002442, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.105, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002332/0.1074, allocations: 1.715 MB / 360 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009588/0.1083, allocations: 0.5692 MB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.1085, allocations: 7.938 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1086, allocations: 11.92 kB / 360.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001615/0.1088, allocations: 31.78 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.1091, allocations: 55.89 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.1092, allocations: 123.5 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1094, allocations: 37.53 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.312e-05/0.1095, allocations: 47.78 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.214e-05/0.1096, allocations: 51.7 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.1096, allocations: 4 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.917e-05/0.1096, allocations: 4 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.1097, allocations: 31.86 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.643e-05/0.1097, allocations: 45.64 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.1099, allocations: 92.02 kB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.279e-06/0.1099, allocations: 0 / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1099, allocations: 0 / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1099, allocations: 3.938 kB / 361.1 MB, free: 11.14 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005465/0.1105, allocations: 434.8 kB / 361.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1105, allocations: 12.03 kB / 361.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.709e-05/0.1106, allocations: 50.48 kB / 361.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.631e-05/0.1106, allocations: 19.72 kB / 361.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.1108, allocations: 214.2 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.1108, allocations: 15.89 kB / 361.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.1109, allocations: 20 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.1113, allocations: 251.1 kB / 362.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1114, allocations: 3.984 kB / 362.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.1114, allocations: 8 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.1114, allocations: 0 / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1116, allocations: 95.88 kB / 362.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.1123, allocations: 0.6076 MB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.1126, allocations: 151.6 kB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.1128, allocations: 90.75 kB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1128, allocations: 0 / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.1128, allocations: 42.52 kB / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 9.72e-07/0.1128, allocations: 0 / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004845/0.1133, allocations: 197.4 kB / 363.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.1134, allocations: 110.8 kB / 363.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.1135, allocations: 160.5 kB / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.1136, allocations: 29.7 kB / 363.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.1136, allocations: 116.6 kB / 363.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.1137, allocations: 27.64 kB / 363.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.1137, allocations: 4 kB / 363.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.1138, allocations: 322.8 kB / 364 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.1139, allocations: 40.34 kB / 364.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.114, allocations: 141.8 kB / 364.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.1142, allocations: 67.91 kB / 364.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1142, allocations: 4 kB / 364.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003353/0.1145, allocations: 197.2 kB / 364.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1146, allocations: 7.938 kB / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1146, allocations: 7.953 kB / 364.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1146, allocations: 8 kB / 364.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.1148, allocations: 52.38 kB / 364.6 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.1148, allocations: 7.984 kB / 364.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.1149, allocations: 27.83 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1149, allocations: 15.94 kB / 364.6 MB, free: 7.297 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.0001102/0.115, allocations: 129.8 kB / 364.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.1152, allocations: 93.42 kB / 364.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.629e-05/0.1153, allocations: 16.72 kB / 364.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1153, allocations: 12.19 kB / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.1153, allocations: 0 / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1153, allocations: 0 / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.1156, allocations: 213.6 kB / 365.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1156, allocations: 4 kB / 365.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.1158, allocations: 35.92 kB / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1158, allocations: 4 kB / 365.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1158, allocations: 7.984 kB / 365.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1158, allocations: 3.938 kB / 365.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.1158, allocations: 7.953 kB / 365.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005095/0.1163, allocations: 399.3 kB / 365.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.191e-05/0.1164, allocations: 104.9 kB / 365.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.1164, allocations: 0 / 365.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.1166, allocations: 15.98 kB / 365.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.1166, allocations: 7.953 kB / 365.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.1166, allocations: 4 kB / 365.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.252e-05/0.1167, allocations: 123.5 kB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1167, allocations: 0 / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.1171, allocations: 27.94 kB / 365.8 MB, free: 6.004 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.0007119/0.1178, allocations: 0.9379 MB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.1181, allocations: 135.8 kB / 366.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1181, allocations: 4 kB / 366.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.1182, allocations: 32.92 kB / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.1187, allocations: 67.83 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.1203, allocations: 1.085 MB / 368.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1206, allocations: 0.7167 MB / 368.8 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.676e-05/0.1207, allocations: 13.42 kB / 368.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.339e-05/0.1208, allocations: 39.42 kB / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1208, allocations: 0 / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01317/0.1339, allocations: 2.585 MB / 371.4 MB, free: 464 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.1342, allocations: 224.7 kB / 371.6 MB, free: 220 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/1.991, allocations: 0 / 371.6 MB, free: 220 kB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat