Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008106/0.0008108, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 227.4 MB / 246 MB, free: 10.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 8 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1309, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002872/0.1339, allocations: 1.646 MB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.1363, allocations: 1.279 MB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.1365, allocations: 3.938 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.1369, allocations: 63.8 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.1373, allocations: 111.6 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009009/0.1382, allocations: 262.1 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.1386, allocations: 191.4 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.1387, allocations: 48.2 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.1389, allocations: 75.62 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.1391, allocations: 91.59 kB / 362.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.1391, allocations: 8 kB / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.1393, allocations: 51.92 kB / 362.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.334e-05/0.1394, allocations: 59.8 kB / 362.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.934e-05/0.1395, allocations: 57.58 kB / 362.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002855/0.1397, allocations: 215.8 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.1398, allocations: 0 / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1398, allocations: 0 / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.1398, allocations: 0 / 362.4 MB, free: 9.602 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008766/0.1407, allocations: 0.5427 MB / 363 MB, free: 9.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.1407, allocations: 12.03 kB / 363 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/0.1408, allocations: 42.56 kB / 363 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.886e-05/0.1409, allocations: 27.7 kB / 363.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000441/0.1413, allocations: 310.2 kB / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.1414, allocations: 12 kB / 363.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.1414, allocations: 15.95 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006271/0.142, allocations: 318.4 kB / 363.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1421, allocations: 3.938 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.1421, allocations: 4 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1421, allocations: 4 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.1423, allocations: 67.95 kB / 363.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006102/0.1429, allocations: 422.2 kB / 364.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003834/0.1433, allocations: 196 kB / 364.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.1435, allocations: 86.55 kB / 364.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.615e-05/0.1435, allocations: 8.172 kB / 364.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.1437, allocations: 87.36 kB / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.024e-06/0.1437, allocations: 0 / 364.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006141/0.1443, allocations: 253.4 kB / 364.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.1445, allocations: 166.3 kB / 365 MB, free: 6.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.1449, allocations: 354.8 kB / 365.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.145, allocations: 33.7 kB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1451, allocations: 132.7 kB / 365.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.1451, allocations: 27.7 kB / 365.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-06/0.1452, allocations: 8 kB / 365.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.1454, allocations: 342.8 kB / 365.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1455, allocations: 52.31 kB / 365.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.1457, allocations: 179.5 kB / 366.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.1459, allocations: 63.92 kB / 366.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1459, allocations: 4 kB / 366.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000371/0.1463, allocations: 229 kB / 366.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.1463, allocations: 8 kB / 366.4 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.1463, allocations: 4.531 kB / 366.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1463, allocations: 12 kB / 366.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1465, allocations: 39.95 kB / 366.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1465, allocations: 7.938 kB / 366.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.1467, allocations: 23.83 kB / 366.5 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.1467, allocations: 16 kB / 366.5 MB, free: 5.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002167/0.1469, allocations: 181.5 kB / 366.7 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.1471, allocations: 141.5 kB / 366.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.962e-05/0.1472, allocations: 37.78 kB / 366.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1472, allocations: 4 kB / 366.8 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.1472, allocations: 7.984 kB / 366.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1472, allocations: 0 / 366.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.1475, allocations: 265.5 kB / 367.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1475, allocations: 0 / 367.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.1477, allocations: 31.92 kB / 367.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.1477, allocations: 4 kB / 367.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1477, allocations: 4 kB / 367.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1477, allocations: 0 / 367.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1477, allocations: 3.984 kB / 367.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.1482, allocations: 256.7 kB / 367.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.1483, allocations: 128.7 kB / 367.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.1484, allocations: 4 kB / 367.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.1484, allocations: 8.078 kB / 367.5 MB, free: 4.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.1485, allocations: 15.94 kB / 367.5 MB, free: 4.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.1486, allocations: 11.98 kB / 367.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.1488, allocations: 253.9 kB / 367.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1489, allocations: 0 / 367.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.1492, allocations: 51.91 kB / 367.9 MB, free: 3.695 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001827/0.1511, allocations: 1.19 MB / 369 MB, free: 2.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003398/0.1514, allocations: 144.6 kB / 369.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1514, allocations: 256 / 369.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.216e-05/0.1515, allocations: 35.92 kB / 369.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.1521, allocations: 124.8 kB / 369.3 MB, free: 2.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.1544, allocations: 1.533 MB / 370.9 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2677/0.4221, allocations: 0.7648 MB / 371.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.4224, allocations: 31.88 kB / 371.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.4226, allocations: 78.95 kB / 371.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4226, allocations: 0 / 371.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.4457, allocations: 5.773 MB / 377.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.446, allocations: 239.2 kB / 377.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.106/2.552, allocations: 3.5 kB / 377.8 MB, free: 18.16 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat