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.001821/0.001821, allocations: 108.5 kB / 16.45 MB, free: 6.438 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.002031/0.002031, allocations: 186.9 kB / 17.38 MB, free: 5.691 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.768/1.768, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07998/0.07998, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001803/0.001803, allocations: 87.5 kB / 394.2 MB, free: 45.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1305, allocations: 49.4 MB / 443.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.004212/0.1348, allocations: 1.954 MB / 445.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1371, allocations: 1.115 MB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.1374, allocations: 7.938 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.1378, allocations: 71.59 kB / 446.7 MB, free: 13.33 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003894/0.1382, allocations: 95.59 kB / 446.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009648/0.1392, allocations: 279.2 kB / 447.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003687/0.1396, allocations: 203.5 kB / 447.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1398, allocations: 57.56 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.14, allocations: 99.55 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.1402, allocations: 99.59 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.1402, allocations: 16 kB / 447.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.1404, allocations: 67.95 kB / 447.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.942e-05/0.1405, allocations: 71.69 kB / 447.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1406, allocations: 103.3 kB / 447.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.1411, allocations: 283.1 kB / 448 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1411, allocations: 3.938 kB / 448 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1412, allocations: 3.938 kB / 448.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.1412, allocations: 0 / 448.1 MB, free: 11.98 MB / 334.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.001052/0.1422, allocations: 0.5739 MB / 448.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1423, allocations: 12.03 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.135e-05/0.1424, allocations: 28.56 kB / 448.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.1429, allocations: 319.4 kB / 449 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.1429, allocations: 16.36 kB / 449 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.1429, allocations: 16.12 kB / 449 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/0.1436, allocations: 313.4 kB / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1436, allocations: 0 / 449.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.1436, allocations: 4 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.1436, allocations: 8 kB / 449.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.1438, allocations: 67.91 kB / 449.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006208/0.1444, allocations: 414.2 kB / 449.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.1448, allocations: 200.1 kB / 450 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.145, allocations: 98.52 kB / 450.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.1451, allocations: 0 / 450.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.1453, allocations: 87.31 kB / 450.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.144e-06/0.1453, allocations: 0 / 450.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005891/0.1459, allocations: 249.1 kB / 450.4 MB, free: 9.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.146, allocations: 174.2 kB / 450.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.1464, allocations: 346.9 kB / 450.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.1464, allocations: 25.7 kB / 451 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.1465, allocations: 140.8 kB / 451.1 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.1465, allocations: 31.62 kB / 451.1 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.668e-05/0.1466, allocations: 57.88 kB / 451.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1468, allocations: 339.1 kB / 451.5 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1469, allocations: 44.44 kB / 451.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.1471, allocations: 194.9 kB / 451.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.1474, allocations: 207.2 kB / 451.9 MB, free: 7.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1474, allocations: 7.938 kB / 452 MB, free: 7.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004135/0.1478, allocations: 232.9 kB / 452.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.1479, allocations: 8.531 kB / 452.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1479, allocations: 8 kB / 452.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1479, allocations: 8 kB / 452.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.1481, allocations: 39.92 kB / 452.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.1481, allocations: 7.938 kB / 452.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.1482, allocations: 16.3 kB / 452.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1482, allocations: 12 kB / 452.3 MB, free: 7.324 MB / 334.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.0001838/0.1484, allocations: 176 kB / 452.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.1486, allocations: 149.2 kB / 452.6 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.049e-05/0.1487, allocations: 37.73 kB / 452.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1487, allocations: 0 / 452.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.1488, allocations: 7.938 kB / 452.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1488, allocations: 0 / 452.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003057/0.1491, allocations: 265.4 kB / 452.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1491, allocations: 4 kB / 452.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.1492, allocations: 27.98 kB / 452.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1492, allocations: 0 / 452.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.1493, allocations: 4 kB / 452.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1493, allocations: 4.391 kB / 452.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.1493, allocations: 11.88 kB / 452.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.1497, allocations: 234.4 kB / 453.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.1499, allocations: 124.8 kB / 453.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.1499, allocations: 8 kB / 453.3 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.581e-05/0.15, allocations: 8 kB / 453.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.835e-05/0.1501, allocations: 19.92 kB / 453.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.1501, allocations: 8 kB / 453.3 MB, free: 6.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.1504, allocations: 245.9 kB / 453.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1504, allocations: 0 / 453.6 MB, free: 5.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1507, allocations: 55.91 kB / 453.6 MB, free: 5.855 MB / 334.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.001024/0.1518, allocations: 436.2 kB / 454.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000363/0.1522, allocations: 151.8 kB / 454.2 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.1522, allocations: 4 kB / 454.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.476e-05/0.1523, allocations: 31.92 kB / 454.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/0.1528, allocations: 121 kB / 454.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008906/0.1537, allocations: 467.2 kB / 454.8 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.1541, allocations: 0.7597 MB / 455.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.1542, allocations: 38.77 kB / 455.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/0.1543, allocations: 31.42 kB / 455.6 MB, free: 3.766 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1543, allocations: 4 kB / 455.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of Templates: time 0.008592/0.1629, allocations: 3.588 MB / 459.2 MB, free: 176 kB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches