Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009845/0.0009848, allocations: 98.05 kB / 17 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 197.8 kB / 17.91 MB, free: 5.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.000291, allocations: 4 kB / 306.8 MB, free: 1.516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1277, allocations: 51.49 MB / 358.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002372/0.1302, allocations: 1.673 MB / 360 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008974/0.1311, allocations: 0.5224 MB / 360.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.668e-05/0.1312, allocations: 3.938 kB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.1313, allocations: 15.86 kB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.351e-05/0.1313, allocations: 15.84 kB / 360.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.1317, allocations: 51.89 kB / 360.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1318, allocations: 103.6 kB / 360.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.132, allocations: 52.98 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.1321, allocations: 35.86 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.984e-05/0.1322, allocations: 47.72 kB / 360.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.1322, allocations: 4 kB / 360.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.725e-05/0.1322, allocations: 4 kB / 360.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.417e-05/0.1323, allocations: 15.92 kB / 360.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.475e-05/0.1323, allocations: 45.64 kB / 360.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.1324, allocations: 84.03 kB / 361 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.1324, allocations: 8 kB / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1324, allocations: 0 / 361 MB, free: 11.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1325, allocations: 0 / 361 MB, free: 11.33 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005383/0.133, allocations: 407 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1331, allocations: 8.031 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.1331, allocations: 46.55 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.1331, allocations: 23.75 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.1334, allocations: 202.5 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.1334, allocations: 15.95 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.1334, allocations: 12 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.1339, allocations: 238.6 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1339, allocations: 3.938 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1339, allocations: 8 kB / 361.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.134, allocations: 0 / 361.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.1342, allocations: 95.88 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.1348, allocations: 0.5882 MB / 362.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.1351, allocations: 151.9 kB / 362.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1353, allocations: 86.58 kB / 362.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1353, allocations: 3.938 kB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1353, allocations: 42.52 kB / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/0.1353, allocations: 0 / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005018/0.1358, allocations: 193.4 kB / 363.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.1359, allocations: 119.2 kB / 363.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.1361, allocations: 124.2 kB / 363.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.1361, allocations: 33.64 kB / 363.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.957e-05/0.1362, allocations: 116 kB / 363.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.1362, allocations: 23.66 kB / 363.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-06/0.1362, allocations: 4 kB / 363.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1363, allocations: 318.8 kB / 363.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1365, allocations: 51.91 kB / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.1366, allocations: 132.8 kB / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.1368, allocations: 55.92 kB / 364 MB, free: 7.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1368, allocations: 3.953 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003407/0.1371, allocations: 197.2 kB / 364.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1372, allocations: 8.438 kB / 364.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1372, allocations: 8 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1372, allocations: 4 kB / 364.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.1374, allocations: 43.92 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1374, allocations: 7.984 kB / 364.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.1375, allocations: 23.84 kB / 364.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.1375, allocations: 8 kB / 364.3 MB, free: 7.633 MB / 302.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 9.818e-05/0.1376, allocations: 133.7 kB / 364.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1378, allocations: 89.39 kB / 364.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.858e-05/0.1378, allocations: 20.7 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1378, allocations: 0 / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.1378, allocations: 4 kB / 364.6 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1379, allocations: 4 kB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.1381, allocations: 197.6 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1381, allocations: 0 / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.1383, allocations: 39.94 kB / 364.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.1383, allocations: 8 kB / 364.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1383, allocations: 3.984 kB / 364.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1383, allocations: 0 / 364.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.1383, allocations: 7.938 kB / 364.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.1388, allocations: 383.5 kB / 365.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.1389, allocations: 92.86 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.1389, allocations: 7.953 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.139, allocations: 11.98 kB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.1391, allocations: 12.14 kB / 365.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.1391, allocations: 7.938 kB / 365.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.88e-05/0.1392, allocations: 95.27 kB / 365.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1392, allocations: 0 / 365.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1395, allocations: 24 kB / 365.4 MB, free: 6.402 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 (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.0007289/0.1402, allocations: 0.9272 MB / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002886/0.1405, allocations: 124.6 kB / 366.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1405, allocations: 0 / 366.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.776e-05/0.1406, allocations: 39.98 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.1412, allocations: 55.94 kB / 366.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/0.1428, allocations: 1.001 MB / 367.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1432, allocations: 0.7124 MB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.513e-05/0.1433, allocations: 12.64 kB / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.624e-05/0.1433, allocations: 33.83 kB / 368.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1434, allocations: 0 / 368.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.1588, allocations: 2.359 MB / 370.7 MB, free: 1.207 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.159, allocations: 234.4 kB / 370.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/1.979, allocations: 7.562 kB / 370.9 MB, free: 0.9609 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat