Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 86.33 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 178.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 241.2 MB, free: 5.305 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.00027, allocations: 5.75 kB / 300.9 MB, free: 5.613 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 50.43 MB / 351.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00205/0.1107, allocations: 1.677 MB / 353 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.1116, allocations: 0.5535 MB / 353.6 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.274e-05/0.1118, allocations: 4 kB / 353.6 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.467e-05/0.1118, allocations: 11.86 kB / 353.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.1119, allocations: 31.78 kB / 353.6 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1122, allocations: 59.88 kB / 353.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.1123, allocations: 111.6 kB / 353.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.271e-05/0.1124, allocations: 49.33 kB / 353.8 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.278e-05/0.1124, allocations: 43.78 kB / 353.9 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.1125, allocations: 51.77 kB / 353.9 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.1125, allocations: 4 kB / 353.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.1125, allocations: 4 kB / 353.9 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.007e-05/0.1126, allocations: 19.92 kB / 353.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.1126, allocations: 53.58 kB / 354 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.709e-05/0.1127, allocations: 95.78 kB / 354.1 MB, free: 8.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1128, allocations: 0 / 354.1 MB, free: 8.641 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.1128, allocations: 0 / 354.1 MB, free: 8.641 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.625e-06/0.1128, allocations: 0 / 354.1 MB, free: 8.641 MB / 286.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.0004528/0.1132, allocations: 441.4 kB / 354.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.688e-05/0.1133, allocations: 8.031 kB / 354.5 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.1133, allocations: 50.5 kB / 354.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.623e-05/0.1133, allocations: 15.81 kB / 354.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.1135, allocations: 210.7 kB / 354.8 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-06/0.1135, allocations: 12 kB / 354.8 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.1136, allocations: 16 kB / 354.8 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.114, allocations: 257.4 kB / 355.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.114, allocations: 8 kB / 355.1 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.114, allocations: 7.953 kB / 355.1 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.114, allocations: 7.984 kB / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002282/0.1143, allocations: 95.81 kB / 355.2 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.1148, allocations: 0.5998 MB / 355.8 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.1152, allocations: 159.9 kB / 356 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1153, allocations: 74.64 kB / 356 MB, free: 6.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1154, allocations: 15.92 kB / 356 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.1154, allocations: 38.5 kB / 356.1 MB, free: 6.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.1154, allocations: 0 / 356.1 MB, free: 6.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004846/0.1159, allocations: 197.4 kB / 356.3 MB, free: 6.219 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.116, allocations: 110.8 kB / 356.4 MB, free: 6.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.1161, allocations: 158.2 kB / 356.5 MB, free: 5.922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1161, allocations: 25.7 kB / 356.6 MB, free: 5.891 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.1162, allocations: 116.4 kB / 356.7 MB, free: 5.773 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.1162, allocations: 31.77 kB / 356.7 MB, free: 5.742 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.064e-06/0.1163, allocations: 4 kB / 356.7 MB, free: 5.738 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1164, allocations: 326.8 kB / 357 MB, free: 5.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1165, allocations: 36.36 kB / 357.1 MB, free: 5.375 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1167, allocations: 152.6 kB / 357.2 MB, free: 5.18 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.1168, allocations: 63.97 kB / 357.3 MB, free: 5.117 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1168, allocations: 3.938 kB / 357.3 MB, free: 5.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000358/0.1172, allocations: 197.2 kB / 357.5 MB, free: 4.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1172, allocations: 8 kB / 357.5 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1172, allocations: 4 kB / 357.5 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1172, allocations: 8 kB / 357.5 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.1174, allocations: 47.91 kB / 357.5 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.1174, allocations: 4.469 kB / 357.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.1175, allocations: 27.89 kB / 357.6 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.1175, allocations: 8 kB / 357.6 MB, free: 4.805 MB / 286.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.0001111/0.1177, allocations: 145.7 kB / 357.7 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.1178, allocations: 93.44 kB / 357.8 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.184e-05/0.1179, allocations: 21.17 kB / 357.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1179, allocations: 0 / 357.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.1179, allocations: 4 kB / 357.8 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.1179, allocations: 4 kB / 357.8 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.1182, allocations: 221.5 kB / 358.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1182, allocations: 4.172 kB / 358.1 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.1184, allocations: 39.92 kB / 358.1 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1184, allocations: 3.938 kB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.1184, allocations: 7.984 kB / 358.1 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1184, allocations: 4 kB / 358.1 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.1184, allocations: 3.984 kB / 358.1 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005113/0.119, allocations: 395.4 kB / 358.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.03e-05/0.119, allocations: 108.9 kB / 358.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.1191, allocations: 4 kB / 358.6 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.1192, allocations: 15.94 kB / 358.6 MB, free: 3.645 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.1193, allocations: 3.984 kB / 358.6 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.1193, allocations: 4 kB / 358.6 MB, free: 3.637 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.315e-05/0.1194, allocations: 124.1 kB / 358.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1194, allocations: 0 / 358.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1197, allocations: 28.06 kB / 358.8 MB, free: 3.488 MB / 286.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.0008065/0.1205, allocations: 0.9369 MB / 359.7 MB, free: 2.523 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003255/0.1208, allocations: 132 kB / 359.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1209, allocations: 0 / 359.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.844e-05/0.121, allocations: 32.67 kB / 359.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.1214, allocations: 68 kB / 360 MB, free: 2.297 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.123, allocations: 1.065 MB / 361 MB, free: 1.121 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.1233, allocations: 0.7245 MB / 361.7 MB, free: 380 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.814e-05/0.1233, allocations: 13.42 kB / 361.8 MB, free: 368 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.728e-05/0.1234, allocations: 39.42 kB / 361.8 MB, free: 328 kB / 286.1 MB Notification: Performance of SimCode: time 1.743e-06/0.1234, allocations: 0 / 361.8 MB, free: 328 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01242/0.1358, allocations: 2.595 MB / 364.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003093/0.1362, allocations: 228.9 kB / 364.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/1.933, allocations: 0 / 364.6 MB, free: 13.71 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat