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/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 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 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 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: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009415/0.0009416, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.001671, allocations: 175.9 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.886/1.886, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09272/0.09272, allocations: 12.6 MB / 283.7 MB, free: 8.691 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009483/0.0009484, allocations: 23.98 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1168, allocations: 50.37 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.003103/0.12, allocations: 1.623 MB / 396.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1222, allocations: 1.054 MB / 397.6 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.1225, allocations: 4 kB / 397.6 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.123, allocations: 63.73 kB / 397.7 MB, free: 24 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004361/0.1234, allocations: 79.7 kB / 397.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1245, allocations: 235.5 kB / 398 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.1249, allocations: 187.4 kB / 398.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1251, allocations: 29.67 kB / 398.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.1252, allocations: 79.62 kB / 398.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.1254, allocations: 91.53 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.1255, allocations: 4 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001949/0.1257, allocations: 59.91 kB / 398.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.1258, allocations: 51.81 kB / 398.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.057e-05/0.1259, allocations: 61.58 kB / 398.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.1262, allocations: 203.8 kB / 398.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1263, allocations: 0 / 398.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.1263, allocations: 0 / 398.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1263, allocations: 7.938 kB / 398.7 MB, free: 14.95 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.001005/0.1273, allocations: 0.5311 MB / 399.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.1273, allocations: 16.03 kB / 399.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.521e-05/0.1274, allocations: 27.62 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.1279, allocations: 294.3 kB / 399.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.103e-05/0.1279, allocations: 12 kB / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.128, allocations: 12 kB / 399.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.1287, allocations: 327 kB / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1287, allocations: 0 / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.1287, allocations: 0 / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.1287, allocations: 4 kB / 399.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.1289, allocations: 79.88 kB / 400 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007005/0.1296, allocations: 422.2 kB / 400.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.13, allocations: 192 kB / 400.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1302, allocations: 86.55 kB / 400.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.611e-05/0.1303, allocations: 7.984 kB / 400.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/0.1304, allocations: 83.33 kB / 400.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.174e-06/0.1304, allocations: 0 / 400.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005802/0.131, allocations: 261.3 kB / 401 MB, free: 12.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.1312, allocations: 166.2 kB / 401.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004167/0.1316, allocations: 342.9 kB / 401.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.1317, allocations: 33.7 kB / 401.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.1318, allocations: 132.7 kB / 401.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.1318, allocations: 31.7 kB / 401.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.1319, allocations: 4.375 kB / 401.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.132, allocations: 338.8 kB / 402.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.1321, allocations: 36.45 kB / 402.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.1324, allocations: 191.4 kB / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.1325, allocations: 67.86 kB / 402.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1326, allocations: 8 kB / 402.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004108/0.133, allocations: 229.5 kB / 402.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.133, allocations: 8 kB / 402.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.133, allocations: 8.031 kB / 402.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.1331, allocations: 4 kB / 402.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.1332, allocations: 43.88 kB / 402.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.1333, allocations: 12.23 kB / 402.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.1334, allocations: 19.84 kB / 402.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1334, allocations: 16 kB / 402.7 MB, free: 10.6 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,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.0002161/0.1337, allocations: 183.7 kB / 402.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.1339, allocations: 149.2 kB / 403 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.728e-05/0.134, allocations: 29.73 kB / 403 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.413e-06/0.134, allocations: 4 kB / 403.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.134, allocations: 3.953 kB / 403.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.134, allocations: 4 kB / 403.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002563/0.1343, allocations: 257.5 kB / 403.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.1343, allocations: 0 / 403.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.1344, allocations: 31.92 kB / 403.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1344, allocations: 0 / 403.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.1345, allocations: 11.98 kB / 403.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1345, allocations: 4.312 kB / 403.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1345, allocations: 0 / 403.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.1349, allocations: 252.7 kB / 403.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.135, allocations: 128.8 kB / 403.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.1351, allocations: 7.984 kB / 403.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.05e-05/0.1352, allocations: 12 kB / 403.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.1353, allocations: 15.92 kB / 403.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.1353, allocations: 8 kB / 403.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002723/0.1356, allocations: 245.9 kB / 404 MB, free: 9.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1356, allocations: 0 / 404 MB, free: 9.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003509/0.1359, allocations: 51.95 kB / 404.1 MB, free: 9.121 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,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.001073/0.137, allocations: 435.5 kB / 404.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003999/0.1374, allocations: 151.7 kB / 404.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1375, allocations: 0 / 404.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.201e-05/0.1375, allocations: 27.98 kB / 404.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005284/0.1381, allocations: 126.7 kB / 404.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008277/0.1389, allocations: 0.4933 MB / 405.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.1393, allocations: 0.7677 MB / 406.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.1394, allocations: 34.5 kB / 406.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.293e-05/0.1395, allocations: 27.42 kB / 406.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1395, allocations: 4 kB / 406.1 MB, free: 7.004 MB / 302.1 MB Notification: Performance of Templates: time 0.00798/0.1475, allocations: 3.184 MB / 409.3 MB, free: 3.816 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile Environment - environmentSimulation: (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches