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.001264/0.001264, allocations: 93.77 kB / 16.3 MB, free: 5.992 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.001402/0.001402, allocations: 183.5 kB / 17.19 MB, free: 5.906 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.51/1.51, allocations: 223.2 MB / 241.1 MB, free: 5.355 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003027, allocations: 7.531 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 50.43 MB / 351.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002151/0.1141, allocations: 1.657 MB / 352.9 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008312/0.115, allocations: 0.5457 MB / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.505e-05/0.1151, allocations: 0 / 353.4 MB, free: 9.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.657e-05/0.1151, allocations: 15.86 kB / 353.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1153, allocations: 35.81 kB / 353.5 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.1156, allocations: 59.94 kB / 353.5 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.1157, allocations: 83.77 kB / 353.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.1159, allocations: 65.23 kB / 353.7 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.225e-05/0.1159, allocations: 35.86 kB / 353.7 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.033e-05/0.116, allocations: 47.72 kB / 353.8 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.116, allocations: 4 kB / 353.8 MB, free: 9.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.1161, allocations: 4 kB / 353.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.1161, allocations: 27.91 kB / 353.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.1161, allocations: 45.64 kB / 353.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.1163, allocations: 91.8 kB / 353.9 MB, free: 8.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1163, allocations: 3.938 kB / 353.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1163, allocations: 4 kB / 353.9 MB, free: 8.832 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1163, allocations: 0 / 353.9 MB, free: 8.832 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.0005411/0.1168, allocations: 438.7 kB / 354.4 MB, free: 8.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1169, allocations: 12.03 kB / 354.4 MB, free: 8.344 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.677e-05/0.1169, allocations: 46.52 kB / 354.4 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.692e-05/0.117, allocations: 19.72 kB / 354.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.1172, allocations: 218.7 kB / 354.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.1172, allocations: 8 kB / 354.7 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.1173, allocations: 12 kB / 354.7 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.1177, allocations: 255.1 kB / 354.9 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.1178, allocations: 0 / 354.9 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.1178, allocations: 7.953 kB / 354.9 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1178, allocations: 4 kB / 354.9 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.1181, allocations: 106 kB / 355 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.1187, allocations: 0.5998 MB / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.119, allocations: 147.9 kB / 355.8 MB, free: 6.766 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.119, allocations: 12.02 kB / 355.8 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.1191, allocations: 42.55 kB / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1191, allocations: 0 / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005064/0.1196, allocations: 197.6 kB / 356 MB, free: 6.504 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.1197, allocations: 106.8 kB / 356.1 MB, free: 6.375 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.1198, allocations: 158.2 kB / 356.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.1198, allocations: 25.7 kB / 356.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.428e-05/0.1199, allocations: 116.5 kB / 356.4 MB, free: 6.062 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.1199, allocations: 23.7 kB / 356.4 MB, free: 6.039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-06/0.1199, allocations: 8.125 kB / 356.5 MB, free: 6.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.12, allocations: 326.8 kB / 356.8 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.1202, allocations: 40.34 kB / 356.8 MB, free: 5.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.1203, allocations: 148.2 kB / 357 MB, free: 5.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001372/0.1205, allocations: 67.91 kB / 357 MB, free: 5.406 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1205, allocations: 4 kB / 357 MB, free: 5.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003573/0.1209, allocations: 201.3 kB / 357.2 MB, free: 5.199 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1209, allocations: 7.938 kB / 357.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1209, allocations: 4 kB / 357.2 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1209, allocations: 8 kB / 357.2 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.1211, allocations: 47.91 kB / 357.3 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1211, allocations: 4 kB / 357.3 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.1212, allocations: 28.3 kB / 357.3 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1213, allocations: 8 kB / 357.3 MB, free: 5.094 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.0001017/0.1214, allocations: 141.7 kB / 357.5 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.1215, allocations: 93.44 kB / 357.6 MB, free: 4.848 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.715e-05/0.1216, allocations: 20.7 kB / 357.6 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.1216, allocations: 4 kB / 357.6 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1216, allocations: 0 / 357.6 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1216, allocations: 0 / 357.6 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.1219, allocations: 217.5 kB / 357.8 MB, free: 4.559 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1219, allocations: 7.984 kB / 357.8 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.1221, allocations: 35.92 kB / 357.8 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1221, allocations: 0 / 357.8 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.1221, allocations: 11.94 kB / 357.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1221, allocations: 0 / 357.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1221, allocations: 0 / 357.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000534/0.1227, allocations: 426.7 kB / 358.3 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.297e-05/0.1228, allocations: 108.9 kB / 358.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.1228, allocations: 8 kB / 358.4 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.123, allocations: 8 kB / 358.4 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.123, allocations: 7.984 kB / 358.4 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.123, allocations: 11.95 kB / 358.4 MB, free: 3.895 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.797e-05/0.1231, allocations: 116.1 kB / 358.5 MB, free: 3.781 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1231, allocations: 4.062 kB / 358.5 MB, free: 3.777 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.1234, allocations: 24 kB / 358.6 MB, free: 3.754 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.0007808/0.1242, allocations: 1.093 MB / 359.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.1246, allocations: 133.7 kB / 359.8 MB, free: 2.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1246, allocations: 4.938 kB / 359.8 MB, free: 2.492 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.1247, allocations: 35.97 kB / 359.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.1251, allocations: 63.89 kB / 359.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.1278, allocations: 3.307 MB / 363.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.1282, allocations: 0.7283 MB / 363.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.945e-05/0.1283, allocations: 13.42 kB / 363.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.841e-05/0.1284, allocations: 35.42 kB / 364 MB, free: 14.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1284, allocations: 4 kB / 364 MB, free: 14.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.1426, allocations: 2.575 MB / 366.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.1428, allocations: 222.2 kB / 366.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/1.93, allocations: 3.938 kB / 366.8 MB, free: 11.55 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