Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 174.1 kB / 16.8 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 223 MB, free: 8.93 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.0007404/0.0007404, allocations: 93.59 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07131/0.07131, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000577/0.000577, allocations: 8 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1129, allocations: 50.38 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.002478/0.1154, allocations: 1.677 MB / 445.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.1175, allocations: 0.9832 MB / 446.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.1177, allocations: 4 kB / 446.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006971/0.1184, allocations: 151.6 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003561/0.1188, allocations: 107.6 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008886/0.1197, allocations: 199.5 kB / 446.8 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002937/0.12, allocations: 211.5 kB / 447 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.1201, allocations: 44.58 kB / 447.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001334/0.1203, allocations: 79.56 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.1205, allocations: 83.55 kB / 447.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.154e-05/0.1205, allocations: 4 kB / 447.2 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1207, allocations: 51.91 kB / 447.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.329e-05/0.1208, allocations: 43.83 kB / 447.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.1209, allocations: 109.1 kB / 447.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.1212, allocations: 171.6 kB / 447.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1212, allocations: 4 kB / 447.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1212, allocations: 0 / 447.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1213, allocations: 0 / 447.6 MB, free: 11.49 MB / 298.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.0007654/0.122, allocations: 0.5157 MB / 448.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1221, allocations: 8.031 kB / 448.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.189e-05/0.1222, allocations: 24.66 kB / 448.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003719/0.1226, allocations: 282.7 kB / 448.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.1226, allocations: 16.36 kB / 448.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.1226, allocations: 16.12 kB / 448.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.1233, allocations: 302.1 kB / 448.7 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1233, allocations: 7.922 kB / 448.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.1234, allocations: 8 kB / 448.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1234, allocations: 0 / 448.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.1236, allocations: 55.97 kB / 448.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000631/0.1243, allocations: 390.3 kB / 449.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.1247, allocations: 176 kB / 449.4 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.1249, allocations: 86.53 kB / 449.5 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1249, allocations: 7.938 kB / 449.5 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/0.1252, allocations: 79.33 kB / 449.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.645e-06/0.1252, allocations: 0 / 449.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006715/0.1259, allocations: 225.3 kB / 449.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.1259, allocations: 144.5 kB / 449.9 MB, free: 8.922 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003336/0.1263, allocations: 272.9 kB / 450.2 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1263, allocations: 33.7 kB / 450.2 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.1264, allocations: 112.7 kB / 450.3 MB, free: 8.496 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.1265, allocations: 31.64 kB / 450.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.149e-05/0.1265, allocations: 8 kB / 450.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.704e-05/0.1266, allocations: 338.8 kB / 450.7 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1267, allocations: 40.39 kB / 450.7 MB, free: 8.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1269, allocations: 166.1 kB / 450.9 MB, free: 7.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.1272, allocations: 203.2 kB / 451.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1272, allocations: 0 / 451.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004898/0.1277, allocations: 225 kB / 451.3 MB, free: 7.375 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1278, allocations: 4 kB / 451.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1278, allocations: 4 kB / 451.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1278, allocations: 8.531 kB / 451.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.128, allocations: 23.92 kB / 451.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.128, allocations: 11.94 kB / 451.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.1282, allocations: 31.7 kB / 451.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1282, allocations: 16 kB / 451.4 MB, free: 7.277 MB / 298.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.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.1284, allocations: 156.9 kB / 451.5 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.1286, allocations: 125.3 kB / 451.7 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.502e-05/0.1287, allocations: 30.17 kB / 451.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1287, allocations: 8 kB / 451.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1288, allocations: 320 / 451.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1288, allocations: 7.922 kB / 451.7 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.129, allocations: 241.5 kB / 452 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.129, allocations: 11.92 kB / 452 MB, free: 6.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.887e-05/0.1291, allocations: 15.92 kB / 452 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1291, allocations: 4 kB / 452 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.1291, allocations: 0 / 452 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.1292, allocations: 4 kB / 452 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1292, allocations: 0 / 452 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004478/0.1296, allocations: 230.3 kB / 452.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1297, allocations: 120.7 kB / 452.3 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.125e-05/0.1298, allocations: 11.94 kB / 452.3 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1299, allocations: 11.98 kB / 452.4 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.13, allocations: 4 kB / 452.4 MB, free: 6.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.13, allocations: 7.984 kB / 452.4 MB, free: 6.195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002333/0.1303, allocations: 200.5 kB / 452.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1303, allocations: 0 / 452.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.1308, allocations: 43.94 kB / 452.6 MB, free: 5.961 MB / 298.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,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.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.001297/0.1321, allocations: 425.3 kB / 453 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.1325, allocations: 148.2 kB / 453.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1325, allocations: 0 / 453.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1327, allocations: 24 kB / 453.2 MB, free: 5.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007186/0.1334, allocations: 108.3 kB / 453.3 MB, free: 5.262 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008451/0.1342, allocations: 486.7 kB / 453.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.1345, allocations: 0.7482 MB / 454.5 MB, free: 3.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/0.1346, allocations: 23.44 kB / 454.5 MB, free: 3.953 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1346, allocations: 0 / 454.5 MB, free: 3.953 MB / 298.7 MB Notification: Performance of Templates: time 0.006974/0.1416, allocations: 3.181 MB / 457.7 MB, free: 0.7656 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches