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.001302/0.001302, allocations: 95.45 kB / 16.02 MB, free: 6.301 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.001407/0.001407, allocations: 195.6 kB / 16.95 MB, free: 6.145 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.812/1.812, allocations: 205.1 MB / 222.8 MB, free: 4.691 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.0868/0.0868, allocations: 12.58 MB / 282.7 MB, free: 8.805 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.001689/0.001689, allocations: 87.81 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1198, allocations: 49.4 MB / 392.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.004059/0.1239, allocations: 2.012 MB / 394.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002653/0.1266, allocations: 1.092 MB / 395.5 MB, free: 484 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1268, allocations: 4 kB / 395.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005197/0.1274, allocations: 67.73 kB / 395.6 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.1277, allocations: 83.73 kB / 395.6 MB, free: 328 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009645/0.1287, allocations: 255.5 kB / 395.9 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.1291, allocations: 207.5 kB / 396.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.1293, allocations: 53.66 kB / 396.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.1294, allocations: 95.56 kB / 396.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.1296, allocations: 107.5 kB / 396.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.1296, allocations: 16 kB / 396.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.1298, allocations: 67.95 kB / 396.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.1299, allocations: 71.69 kB / 396.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.13, allocations: 99.34 kB / 396.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.1304, allocations: 283.4 kB / 396.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1304, allocations: 0 / 396.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1304, allocations: 0 / 396.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1304, allocations: 0 / 396.9 MB, free: 15.09 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.001087/0.1315, allocations: 0.5777 MB / 397.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1316, allocations: 16.03 kB / 397.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.1316, allocations: 28.56 kB / 397.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.132, allocations: 295.5 kB / 397.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/0.1321, allocations: 16.36 kB / 397.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.1321, allocations: 16.12 kB / 397.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006724/0.1328, allocations: 331 kB / 398.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.1328, allocations: 3.984 kB / 398.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.1328, allocations: 4 kB / 398.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.1328, allocations: 7.938 kB / 398.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.133, allocations: 71.89 kB / 398.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006848/0.1337, allocations: 410.2 kB / 398.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.1342, allocations: 196 kB / 398.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.1343, allocations: 94.48 kB / 398.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.1344, allocations: 8.203 kB / 398.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.1346, allocations: 83.3 kB / 399 MB, free: 12.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.1346, allocations: 0 / 399 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005276/0.1352, allocations: 249.2 kB / 399.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.1353, allocations: 170.5 kB / 399.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003378/0.1356, allocations: 346.9 kB / 399.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1356, allocations: 29.7 kB / 399.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1358, allocations: 132.7 kB / 399.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.1358, allocations: 35.62 kB / 399.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-05/0.1359, allocations: 57.83 kB / 400 MB, free: 11.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.136, allocations: 342.8 kB / 400.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.95e-05/0.1361, allocations: 40.45 kB / 400.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.1363, allocations: 186.9 kB / 400.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/0.1366, allocations: 215.4 kB / 400.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1366, allocations: 4 kB / 400.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004061/0.137, allocations: 229.4 kB / 401 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.137, allocations: 12.09 kB / 401 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.137, allocations: 4 kB / 401 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1371, allocations: 8 kB / 401 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1372, allocations: 43.86 kB / 401 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1372, allocations: 11.92 kB / 401.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.1374, allocations: 15.84 kB / 401.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.1374, allocations: 16 kB / 401.1 MB, free: 10.43 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.1376, allocations: 179.9 kB / 401.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.1378, allocations: 133.3 kB / 401.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.052e-05/0.1379, allocations: 37.73 kB / 401.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1379, allocations: 4 kB / 401.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.1379, allocations: 7.875 kB / 401.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1379, allocations: 48 / 401.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.1381, allocations: 261.4 kB / 401.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1382, allocations: 4 kB / 401.7 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.1383, allocations: 27.92 kB / 401.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1383, allocations: 4 kB / 401.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.1383, allocations: 7.984 kB / 401.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.1383, allocations: 8 kB / 401.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1383, allocations: 3.938 kB / 401.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003911/0.1387, allocations: 238.4 kB / 402 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.1389, allocations: 128.7 kB / 402.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.09e-05/0.1389, allocations: 12 kB / 402.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.139, allocations: 15.98 kB / 402.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.1391, allocations: 7.938 kB / 402.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.1391, allocations: 15.98 kB / 402.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.1393, allocations: 242 kB / 402.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1393, allocations: 7.938 kB / 402.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1396, allocations: 51.98 kB / 402.5 MB, free: 8.945 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009324/0.1406, allocations: 436.9 kB / 402.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.1409, allocations: 159.8 kB / 403 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.141, allocations: 3.938 kB / 403 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.467e-05/0.141, allocations: 27.98 kB / 403.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004891/0.1415, allocations: 134.4 kB / 403.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000774/0.1423, allocations: 0.5022 MB / 403.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1427, allocations: 0.7751 MB / 404.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.478e-05/0.1428, allocations: 30.28 kB / 404.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.249e-05/0.1429, allocations: 27.44 kB / 404.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1429, allocations: 0 / 404.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Templates: time 0.007401/0.1503, allocations: 3.462 MB / 408 MB, free: 3.34 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (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) 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