Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009636/0.0009636, allocations: 89.75 kB / 16.31 MB, free: 5.676 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.001097/0.001097, allocations: 186 kB / 17.21 MB, free: 5.594 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.496/1.496, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003087, allocations: 8 kB / 300.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1246, allocations: 50.42 MB / 351.3 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002667/0.1274, allocations: 1.617 MB / 353 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1293, allocations: 1.111 MB / 354.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.1296, allocations: 7.938 kB / 354.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000456/0.13, allocations: 67.72 kB / 354.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002906/0.1303, allocations: 67.73 kB / 354.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.1314, allocations: 262.4 kB / 354.5 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002942/0.1317, allocations: 191.4 kB / 354.7 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.1319, allocations: 37.62 kB / 354.7 MB, free: 308 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.132, allocations: 75.62 kB / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.1322, allocations: 87.59 kB / 354.8 MB, free: 144 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.1322, allocations: 4 kB / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.1324, allocations: 55.97 kB / 354.9 MB, free: 84 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.919e-05/0.1325, allocations: 59.75 kB / 355 MB, free: 24 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.754e-05/0.1326, allocations: 61.58 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.1329, allocations: 195.9 kB / 355.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.1329, allocations: 4 kB / 355.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1329, allocations: 0 / 355.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1329, allocations: 0 / 355.2 MB, free: 15.76 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.0008978/0.1338, allocations: 0.5388 MB / 355.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.1339, allocations: 12.03 kB / 355.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.168e-05/0.134, allocations: 46.56 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.134, allocations: 31.62 kB / 355.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.1345, allocations: 298.3 kB / 356.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.1345, allocations: 12 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.1345, allocations: 15.98 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.1352, allocations: 319.8 kB / 356.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.1352, allocations: 7.969 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.1352, allocations: 8 kB / 356.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1352, allocations: 4 kB / 356.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.1354, allocations: 71.84 kB / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006028/0.136, allocations: 406.3 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.1364, allocations: 199.9 kB / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.1366, allocations: 90.53 kB / 357.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.284e-05/0.1367, allocations: 8.219 kB / 357.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.1369, allocations: 79.38 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.014e-06/0.1369, allocations: 0 / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006011/0.1375, allocations: 253.1 kB / 357.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.1376, allocations: 174.2 kB / 357.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.1381, allocations: 346.9 kB / 358.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.1381, allocations: 25.7 kB / 358.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1382, allocations: 136.7 kB / 358.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.1383, allocations: 27.69 kB / 358.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-06/0.1383, allocations: 8 kB / 358.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1385, allocations: 338.8 kB / 358.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-05/0.1386, allocations: 40.44 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1388, allocations: 188.4 kB / 358.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.1389, allocations: 75.92 kB / 358.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1389, allocations: 7.891 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000383/0.1393, allocations: 225.5 kB / 359.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1394, allocations: 11.94 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.1394, allocations: 7.984 kB / 359.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.1394, allocations: 8 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.1396, allocations: 40.23 kB / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.1396, allocations: 8 kB / 359.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.1398, allocations: 23.84 kB / 359.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.1398, allocations: 11.98 kB / 359.3 MB, free: 11.35 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.0002113/0.14, allocations: 172 kB / 359.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.1402, allocations: 149.5 kB / 359.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.901e-05/0.1403, allocations: 33.75 kB / 359.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.1403, allocations: 11.92 kB / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1404, allocations: 0 / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1404, allocations: 0 / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.1407, allocations: 261.5 kB / 359.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1407, allocations: 48 / 359.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.1408, allocations: 35.92 kB / 359.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.1409, allocations: 4 kB / 359.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1409, allocations: 4 kB / 359.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.1409, allocations: 4 kB / 359.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1409, allocations: 0 / 359.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.1413, allocations: 247.7 kB / 360.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.1415, allocations: 132.7 kB / 360.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.1415, allocations: 7.953 kB / 360.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.1416, allocations: 12 kB / 360.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.84e-05/0.1417, allocations: 11.98 kB / 360.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/0.1418, allocations: 11.98 kB / 360.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002674/0.142, allocations: 241.9 kB / 360.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1421, allocations: 0 / 360.6 MB, free: 9.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.1424, allocations: 47.98 kB / 360.6 MB, free: 9.887 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.001934/0.1444, allocations: 1.189 MB / 361.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004191/0.1448, allocations: 156.4 kB / 362 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1448, allocations: 0 / 362 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.1449, allocations: 27.98 kB / 362 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.1455, allocations: 124.7 kB / 362.1 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.1479, allocations: 1.503 MB / 363.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1483, allocations: 0.7677 MB / 364.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.1484, allocations: 34.75 kB / 364.4 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.1486, allocations: 75.41 kB / 364.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1486, allocations: 4.281 kB / 364.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.1691, allocations: 5.67 MB / 370.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.1694, allocations: 243.9 kB / 370.4 MB, free: 276 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.3, allocations: 0 / 370.4 MB, free: 276 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat