Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001011/0.001011, allocations: 88.53 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.001128/0.001129, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.456/1.456, allocations: 223.2 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002597, allocations: 6.438 kB / 300.9 MB, free: 5.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 50.43 MB / 351.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002409/0.1189, allocations: 1.666 MB / 353 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.1198, allocations: 487 kB / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.231e-05/0.1199, allocations: 4 kB / 353.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.796e-05/0.12, allocations: 11.86 kB / 353.5 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.464e-05/0.1201, allocations: 23.84 kB / 353.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.1204, allocations: 43.95 kB / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.1205, allocations: 111.6 kB / 353.7 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1207, allocations: 48.94 kB / 353.7 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.617e-05/0.1207, allocations: 35.8 kB / 353.7 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.447e-05/0.1208, allocations: 43.77 kB / 353.8 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.1208, allocations: 11.94 kB / 353.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.1209, allocations: 4 kB / 353.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.388e-05/0.1209, allocations: 19.92 kB / 353.8 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.1209, allocations: 45.64 kB / 353.9 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.1211, allocations: 83.81 kB / 354 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1211, allocations: 0 / 354 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1211, allocations: 0 / 354 MB, free: 8.793 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1211, allocations: 0 / 354 MB, free: 8.793 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005311/0.1216, allocations: 414.9 kB / 354.4 MB, free: 8.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1217, allocations: 12.03 kB / 354.4 MB, free: 8.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.643e-05/0.1217, allocations: 50.5 kB / 354.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.1218, allocations: 11.81 kB / 354.4 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.122, allocations: 194.9 kB / 354.6 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.122, allocations: 8 kB / 354.6 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.122, allocations: 12 kB / 354.6 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.1225, allocations: 237.4 kB / 354.9 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1225, allocations: 4 kB / 354.9 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.1226, allocations: 11.95 kB / 354.9 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1226, allocations: 7.938 kB / 354.9 MB, free: 7.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.1228, allocations: 95.86 kB / 355 MB, free: 7.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006615/0.1235, allocations: 0.592 MB / 355.6 MB, free: 6.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.1238, allocations: 151.9 kB / 355.7 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1239, allocations: 86.62 kB / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.124, allocations: 3.938 kB / 355.8 MB, free: 6.699 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.124, allocations: 38.56 kB / 355.9 MB, free: 6.652 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.124, allocations: 0 / 355.9 MB, free: 6.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004787/0.1245, allocations: 193.4 kB / 356 MB, free: 6.457 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/0.1246, allocations: 114.7 kB / 356.2 MB, free: 6.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.426e-05/0.1247, allocations: 130.1 kB / 356.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1247, allocations: 29.7 kB / 356.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.1248, allocations: 112.1 kB / 356.4 MB, free: 6.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.1248, allocations: 27.64 kB / 356.4 MB, free: 6.004 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.1248, allocations: 7.938 kB / 356.5 MB, free: 5.996 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.125, allocations: 322.8 kB / 356.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1251, allocations: 39.97 kB / 356.8 MB, free: 5.633 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1253, allocations: 139 kB / 356.9 MB, free: 5.453 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.1255, allocations: 55.98 kB / 357 MB, free: 5.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1255, allocations: 3.938 kB / 357 MB, free: 5.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003508/0.1258, allocations: 193.2 kB / 357.2 MB, free: 5.199 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1258, allocations: 8 kB / 357.2 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1259, allocations: 4 kB / 357.2 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1259, allocations: 7.953 kB / 357.2 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.126, allocations: 47.97 kB / 357.3 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1261, allocations: 8.375 kB / 357.3 MB, free: 5.125 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1262, allocations: 28.2 kB / 357.3 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.1262, allocations: 12 kB / 357.3 MB, free: 5.086 MB / 286.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.0001282/0.1263, allocations: 125.8 kB / 357.4 MB, free: 4.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.1265, allocations: 85.47 kB / 357.5 MB, free: 4.863 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.1265, allocations: 20.7 kB / 357.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1265, allocations: 0 / 357.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1265, allocations: 7.953 kB / 357.5 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1265, allocations: 4 kB / 357.5 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.1268, allocations: 209.4 kB / 357.7 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1268, allocations: 0 / 357.7 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.127, allocations: 35.98 kB / 357.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.127, allocations: 4 kB / 357.8 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.127, allocations: 0 / 357.8 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.127, allocations: 4 kB / 357.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.127, allocations: 0 / 357.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000505/0.1275, allocations: 399.4 kB / 358.2 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.13e-05/0.1276, allocations: 88.95 kB / 358.3 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.1277, allocations: 0 / 358.3 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1278, allocations: 15.98 kB / 358.3 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.1278, allocations: 4 kB / 358.3 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.1278, allocations: 7.953 kB / 358.3 MB, free: 3.988 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.858e-05/0.1279, allocations: 103.2 kB / 358.4 MB, free: 3.887 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1279, allocations: 0 / 358.4 MB, free: 3.887 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.1282, allocations: 28 kB / 358.4 MB, free: 3.859 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 (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.0008226/0.1291, allocations: 0.9254 MB / 359.3 MB, free: 2.906 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.1294, allocations: 132.2 kB / 359.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1294, allocations: 0 / 359.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.58e-05/0.1295, allocations: 31.92 kB / 359.5 MB, free: 2.746 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004866/0.13, allocations: 52.89 kB / 359.6 MB, free: 2.695 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.1316, allocations: 1.002 MB / 360.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.132, allocations: 0.72 MB / 361.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.84e-05/0.132, allocations: 8.609 kB / 361.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.1321, allocations: 41.73 kB / 361.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1321, allocations: 0 / 361.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.1458, allocations: 2.365 MB / 363.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.1461, allocations: 237.4 kB / 363.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.023, allocations: 0 / 363.9 MB, free: 14.41 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat