Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002645/0.002645, allocations: 190.7 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.301/2.301, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 98.78 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1456/0.1456, allocations: 12.58 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005545/0.0005545, allocations: 15.83 kB / 392.1 MB, free: 54.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1245, allocations: 50.37 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.00266/0.1273, allocations: 1.612 MB / 444.1 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.1295, allocations: 1.019 MB / 445.1 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002168/0.1297, allocations: 0 / 445.1 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003436/0.1301, allocations: 63.67 kB / 445.2 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.1304, allocations: 83.81 kB / 445.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1315, allocations: 235.1 kB / 445.5 MB, free: 7.781 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.1318, allocations: 127.7 kB / 445.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1319, allocations: 41.64 kB / 445.6 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.1321, allocations: 75.69 kB / 445.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.1322, allocations: 87.59 kB / 445.8 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.1323, allocations: 4 kB / 445.8 MB, free: 7.449 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.1325, allocations: 39.92 kB / 445.9 MB, free: 7.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.914e-05/0.1325, allocations: 67.73 kB / 445.9 MB, free: 7.344 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.456e-05/0.1326, allocations: 57.58 kB / 446 MB, free: 7.281 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002943/0.1329, allocations: 200.4 kB / 446.2 MB, free: 7.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1329, allocations: 4 kB / 446.2 MB, free: 7.082 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1329, allocations: 0 / 446.2 MB, free: 7.082 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.133, allocations: 0 / 446.2 MB, free: 7.082 MB / 282.7 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.0008829/0.1338, allocations: 0.5311 MB / 446.7 MB, free: 6.496 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1339, allocations: 12.03 kB / 446.7 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.19e-05/0.134, allocations: 46.55 kB / 446.8 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.88e-05/0.134, allocations: 27.62 kB / 446.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.1345, allocations: 310.2 kB / 447.1 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.1345, allocations: 15.94 kB / 447.1 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.1346, allocations: 16 kB / 447.1 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.1353, allocations: 319 kB / 447.4 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1354, allocations: 0 / 447.4 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.1354, allocations: 4 kB / 447.4 MB, free: 5.684 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.1354, allocations: 4 kB / 447.4 MB, free: 5.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/0.1357, allocations: 67.91 kB / 447.5 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/0.1364, allocations: 418.2 kB / 447.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005131/0.1369, allocations: 191.8 kB / 448.1 MB, free: 4.934 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.365e-05/0.137, allocations: 16.23 kB / 448.1 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.1372, allocations: 67.39 kB / 448.2 MB, free: 4.84 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.955e-06/0.1372, allocations: 0 / 448.2 MB, free: 4.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008224/0.1381, allocations: 257.3 kB / 448.4 MB, free: 4.582 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.1382, allocations: 178.2 kB / 448.6 MB, free: 4.371 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004538/0.1386, allocations: 342.9 kB / 448.9 MB, free: 4.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.1387, allocations: 29.7 kB / 449 MB, free: 3.992 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/0.1388, allocations: 132.7 kB / 449.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.034e-05/0.1388, allocations: 27.7 kB / 449.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.401e-05/0.1389, allocations: 4 kB / 449.1 MB, free: 3.824 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.887e-05/0.1389, allocations: 342.8 kB / 449.5 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1391, allocations: 40.45 kB / 449.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002183/0.1393, allocations: 187.2 kB / 449.7 MB, free: 3.199 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1395, allocations: 71.92 kB / 449.8 MB, free: 3.129 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1396, allocations: 3.938 kB / 449.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005323/0.1401, allocations: 229 kB / 450 MB, free: 2.895 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1401, allocations: 8 kB / 450 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1401, allocations: 4 kB / 450 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.1402, allocations: 8 kB / 450 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.1404, allocations: 44.25 kB / 450.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.1405, allocations: 12.45 kB / 450.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.1407, allocations: 23.84 kB / 450.1 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.1407, allocations: 12.05 kB / 450.1 MB, free: 2.785 MB / 282.7 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,sample.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.0002164/0.1409, allocations: 188 kB / 450.3 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.1412, allocations: 137.2 kB / 450.4 MB, free: 2.453 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.686e-05/0.1413, allocations: 41.73 kB / 450.5 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1413, allocations: 0 / 450.5 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.1414, allocations: 7.953 kB / 450.5 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1414, allocations: 0 / 450.5 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.1417, allocations: 261.5 kB / 450.7 MB, free: 2.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1417, allocations: 4 kB / 450.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.1419, allocations: 31.92 kB / 450.8 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.1419, allocations: 4 kB / 450.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.142, allocations: 3.984 kB / 450.8 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.142, allocations: 4.391 kB / 450.8 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.142, allocations: 0 / 450.8 MB, free: 2.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.1425, allocations: 276.1 kB / 451 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.1427, allocations: 124.7 kB / 451.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.758e-05/0.1428, allocations: 11.95 kB / 451.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.1429, allocations: 11.98 kB / 451.2 MB, free: 1.578 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.143, allocations: 7.984 kB / 451.2 MB, free: 1.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.143, allocations: 12 kB / 451.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.1434, allocations: 249.9 kB / 451.4 MB, free: 1.316 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1434, allocations: 0 / 451.4 MB, free: 1.316 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004607/0.1438, allocations: 44 kB / 451.5 MB, free: 1.273 MB / 282.7 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,sample.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.002143/0.146, allocations: 1.35 MB / 452.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005608/0.1466, allocations: 148.5 kB / 453 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1466, allocations: 256 / 453 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1468, allocations: 35.92 kB / 453 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007119/0.1475, allocations: 112.8 kB / 453.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.1519, allocations: 4.01 MB / 457.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.1525, allocations: 0.7832 MB / 457.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.1527, allocations: 34.52 kB / 458 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.153, allocations: 75.41 kB / 458 MB, free: 10.55 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.153, allocations: 4 kB / 458 MB, free: 10.54 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.1822, allocations: 5.686 MB / 463.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005156/0.1828, allocations: 252.5 kB / 464 MB, free: 4.574 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.79/2.973, allocations: 0 / 464 MB, free: 4.574 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat