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.0008106/0.0008105, allocations: 178.9 kB / 16.45 MB, free: 5.684 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.304/1.304, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007803/0.0007805, allocations: 93.33 kB / 270.9 MB, free: 8.352 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.06727/0.06727, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004552, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08794, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.001989/0.08996, allocations: 1.638 MB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.09114, allocations: 0.972 MB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.09125, allocations: 7.938 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004586/0.09172, allocations: 143.6 kB / 445.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.09194, allocations: 91.69 kB / 445.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004942/0.09244, allocations: 191.6 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.09263, allocations: 199.4 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.09274, allocations: 48.27 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.793e-05/0.09284, allocations: 79.62 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.329e-05/0.09294, allocations: 79.61 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.09297, allocations: 4 kB / 446.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.09308, allocations: 35.98 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.729e-05/0.09314, allocations: 51.77 kB / 446.6 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.556e-05/0.0932, allocations: 53.62 kB / 446.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.09337, allocations: 183.9 kB / 446.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.09338, allocations: 3.938 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.09339, allocations: 0 / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.0934, allocations: 0 / 446.8 MB, free: 12 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.0006038/0.09401, allocations: 0.5 MB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.09406, allocations: 12.03 kB / 447.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.09413, allocations: 23.72 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.09441, allocations: 277.5 kB / 447.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.09444, allocations: 15.98 kB / 447.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.09446, allocations: 19.94 kB / 447.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.09492, allocations: 298.1 kB / 447.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.09494, allocations: 0 / 447.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.09496, allocations: 4 kB / 447.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.09497, allocations: 0 / 447.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.09511, allocations: 63.91 kB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003874/0.0955, allocations: 386.3 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.09577, allocations: 175.9 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.09589, allocations: 86.53 kB / 448.6 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.09593, allocations: 4 kB / 448.6 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/0.09607, allocations: 75.38 kB / 448.7 MB, free: 9.863 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.09608, allocations: 3.938 kB / 448.7 MB, free: 9.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004097/0.0965, allocations: 225.3 kB / 448.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.613e-05/0.09656, allocations: 148.4 kB / 449.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.09677, allocations: 268.9 kB / 449.3 MB, free: 9.188 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.0968, allocations: 29.7 kB / 449.4 MB, free: 9.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.363e-05/0.09686, allocations: 116.7 kB / 449.5 MB, free: 9.035 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.09689, allocations: 31.64 kB / 449.5 MB, free: 9.004 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-06/0.0969, allocations: 4 kB / 449.5 MB, free: 9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.09697, allocations: 338.8 kB / 449.8 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.291e-05/0.09704, allocations: 36.44 kB / 449.9 MB, free: 8.625 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.09717, allocations: 170 kB / 450 MB, free: 8.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.171e-05/0.09727, allocations: 59.97 kB / 450.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.09728, allocations: 0 / 450.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002706/0.09756, allocations: 225.3 kB / 450.3 MB, free: 8.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.09758, allocations: 8 kB / 450.3 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.09759, allocations: 7.953 kB / 450.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.09761, allocations: 8.375 kB / 450.3 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.861e-05/0.0977, allocations: 28.45 kB / 450.4 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.09772, allocations: 12 kB / 450.4 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.09783, allocations: 19.78 kB / 450.4 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.09785, allocations: 19.94 kB / 450.4 MB, free: 8.012 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.09795, allocations: 160.7 kB / 450.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.09809, allocations: 129.6 kB / 450.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.09816, allocations: 33.64 kB / 450.7 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.09817, allocations: 7.953 kB / 450.7 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.09818, allocations: 4 kB / 450.8 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.09819, allocations: 4 kB / 450.8 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.09835, allocations: 241.5 kB / 451 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.09836, allocations: 0 / 451 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.612e-05/0.0984, allocations: 12 kB / 451 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.09841, allocations: 0 / 451 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.09842, allocations: 7.984 kB / 451 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.09843, allocations: 0 / 451 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.09844, allocations: 7.953 kB / 451 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.0987, allocations: 229.3 kB / 451.2 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.146e-05/0.09878, allocations: 116.8 kB / 451.4 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/0.09882, allocations: 8 kB / 451.4 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.09889, allocations: 8 kB / 451.4 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/0.09893, allocations: 11.94 kB / 451.4 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.09896, allocations: 4 kB / 451.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.0991, allocations: 204.5 kB / 451.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09911, allocations: 0 / 451.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002559/0.09937, allocations: 43.92 kB / 451.6 MB, free: 6.699 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 (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.0008052/0.1002, allocations: 436.9 kB / 452.1 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.1004, allocations: 136.6 kB / 452.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1005, allocations: 0 / 452.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.021e-05/0.1005, allocations: 31.92 kB / 452.2 MB, free: 6.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.1009, allocations: 108.3 kB / 452.3 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/0.1015, allocations: 454.5 kB / 452.8 MB, free: 5.508 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.1016, allocations: 0.756 MB / 453.5 MB, free: 4.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.1017, allocations: 23.44 kB / 453.6 MB, free: 4.707 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1017, allocations: 0 / 453.6 MB, free: 4.707 MB / 298.7 MB Notification: Performance of Templates: time 0.004182/0.1059, allocations: 3.189 MB / 456.7 MB, free: 1.512 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