Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001104/0.001104, allocations: 89.02 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.001353/0.001353, allocations: 180.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.2 MB / 241.2 MB, free: 5.246 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.000285, allocations: 6.203 kB / 300.9 MB, free: 5.547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 50.44 MB / 351.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002473/0.1084, allocations: 1.662 MB / 353 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008699/0.1093, allocations: 0.5107 MB / 353.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.1094, allocations: 0 / 353.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.845e-05/0.1095, allocations: 7.938 kB / 353.5 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1096, allocations: 19.78 kB / 353.5 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.1099, allocations: 51.08 kB / 353.6 MB, free: 9.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.11, allocations: 111.6 kB / 353.7 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.1102, allocations: 48.94 kB / 353.7 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.538e-05/0.1103, allocations: 39.8 kB / 353.8 MB, free: 8.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.063e-05/0.1104, allocations: 43.77 kB / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.1104, allocations: 11.94 kB / 353.8 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.901e-05/0.1104, allocations: 4 kB / 353.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.465e-05/0.1104, allocations: 15.92 kB / 353.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.13e-05/0.1105, allocations: 45.64 kB / 353.9 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.1107, allocations: 87.81 kB / 354 MB, free: 8.613 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1107, allocations: 0 / 354 MB, free: 8.613 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1107, allocations: 0 / 354 MB, free: 8.613 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1107, allocations: 0 / 354 MB, free: 8.613 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005685/0.1113, allocations: 414.9 kB / 354.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1113, allocations: 8.031 kB / 354.4 MB, free: 8.152 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.1114, allocations: 54.5 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.846e-05/0.1114, allocations: 15.81 kB / 354.5 MB, free: 8.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.1116, allocations: 198.9 kB / 354.7 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.1116, allocations: 12 kB / 354.7 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.1117, allocations: 15.91 kB / 354.7 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.1122, allocations: 251 kB / 354.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1122, allocations: 4 kB / 354.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.1122, allocations: 7.953 kB / 354.9 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1122, allocations: 4 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.1125, allocations: 99.81 kB / 355 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.1132, allocations: 0.5882 MB / 355.6 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.1135, allocations: 155.9 kB / 355.8 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.1137, allocations: 86.62 kB / 355.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.1137, allocations: 0 / 355.9 MB, free: 6.496 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.1138, allocations: 38.5 kB / 355.9 MB, free: 6.449 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.042e-06/0.1138, allocations: 7.938 kB / 355.9 MB, free: 6.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005473/0.1143, allocations: 197.3 kB / 356.1 MB, free: 6.242 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.1145, allocations: 114.9 kB / 356.2 MB, free: 6.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.1146, allocations: 134.1 kB / 356.4 MB, free: 5.961 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.1146, allocations: 25.7 kB / 356.4 MB, free: 5.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.542e-05/0.1147, allocations: 112 kB / 356.5 MB, free: 5.816 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1147, allocations: 31.64 kB / 356.5 MB, free: 5.785 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-06/0.1148, allocations: 4 kB / 356.5 MB, free: 5.781 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1149, allocations: 318.8 kB / 356.8 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.115, allocations: 48.3 kB / 356.9 MB, free: 5.414 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.1152, allocations: 146.4 kB / 357 MB, free: 5.223 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.1153, allocations: 59.91 kB / 357.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1153, allocations: 0 / 357.1 MB, free: 5.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003587/0.1157, allocations: 197.7 kB / 357.3 MB, free: 4.965 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1157, allocations: 8.031 kB / 357.3 MB, free: 4.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.1157, allocations: 8 kB / 357.3 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1158, allocations: 4.234 kB / 357.3 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.1159, allocations: 55.91 kB / 357.4 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1159, allocations: 4 kB / 357.4 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1161, allocations: 31.83 kB / 357.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.1161, allocations: 15.95 kB / 357.4 MB, free: 4.84 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.0001169/0.1162, allocations: 133.8 kB / 357.5 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.1164, allocations: 93.42 kB / 357.6 MB, free: 4.602 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.1165, allocations: 20.7 kB / 357.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1165, allocations: 0 / 357.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1165, allocations: 4.469 kB / 357.6 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1165, allocations: 0 / 357.6 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.1168, allocations: 209.5 kB / 357.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1168, allocations: 0 / 357.9 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.117, allocations: 43.92 kB / 357.9 MB, free: 4.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.117, allocations: 11.92 kB / 357.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.117, allocations: 0 / 357.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.117, allocations: 4 kB / 357.9 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.117, allocations: 0 / 357.9 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.1175, allocations: 397.6 kB / 358.3 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.345e-05/0.1176, allocations: 89.03 kB / 358.4 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.1176, allocations: 11.94 kB / 358.4 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.1178, allocations: 8.062 kB / 358.4 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.1178, allocations: 7.984 kB / 358.4 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.1178, allocations: 8 kB / 358.4 MB, free: 3.715 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.287e-05/0.1179, allocations: 95.27 kB / 358.5 MB, free: 3.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1179, allocations: 0 / 358.5 MB, free: 3.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1182, allocations: 27.94 kB / 358.5 MB, free: 3.594 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.0008432/0.1191, allocations: 0.9336 MB / 359.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.1194, allocations: 132.6 kB / 359.6 MB, free: 2.504 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1194, allocations: 8 kB / 359.6 MB, free: 2.496 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.002e-05/0.1195, allocations: 31.97 kB / 359.6 MB, free: 2.465 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.12, allocations: 54.58 kB / 359.7 MB, free: 2.414 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.1217, allocations: 1.013 MB / 360.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.122, allocations: 0.7164 MB / 361.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.246e-05/0.122, allocations: 13.08 kB / 361.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.99e-05/0.1221, allocations: 35.48 kB / 361.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of SimCode: time 2.835e-06/0.1221, allocations: 0 / 361.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01407/0.1362, allocations: 2.405 MB / 363.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/0.1364, allocations: 225.2 kB / 364.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.928, allocations: 0 / 364.1 MB, free: 14.05 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat