Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002328/0.002328, allocations: 178.4 kB / 8.405 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.189/2.189, allocations: 205.3 MB / 214.1 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001131, allocations: 90.27 kB / 262.1 MB, free: 1.688 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.1057/0.1057, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.963e-05/1.973e-05, allocations: 0 / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3096, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.145/0.4547, allocations: 81.62 MB / 0.4989 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.4551, allocations: 83.95 kB / 0.499 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04039/0.4955, allocations: 8.582 MB / 0.5074 GB, free: 8.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.991e-06/0.4955, allocations: 0 / 0.5074 GB, free: 8.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.753e-05/0.4956, allocations: 11.94 kB / 0.5074 GB, free: 8.004 MB / 362.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.0009881/0.4966, allocations: 0.5267 MB / 0.5079 GB, free: 7.426 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4967, allocations: 8.031 kB / 0.5079 GB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.4968, allocations: 27.62 kB / 0.5079 GB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007345/0.4975, allocations: 310.4 kB / 0.5082 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.4976, allocations: 7.953 kB / 0.5082 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.4976, allocations: 12 kB / 0.5083 GB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002669/0.4979, allocations: 79.91 kB / 0.5083 GB, free: 6.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006998/0.4986, allocations: 289.6 kB / 0.5086 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.4987, allocations: 0 / 0.5086 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.4987, allocations: 0 / 0.5086 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.4987, allocations: 4 kB / 0.5086 GB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008815/0.4996, allocations: 410.7 kB / 0.509 GB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004476/0.5001, allocations: 176.1 kB / 0.5092 GB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.5003, allocations: 86.56 kB / 0.5093 GB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.5004, allocations: 12 kB / 0.5093 GB, free: 5.887 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/0.5006, allocations: 75.38 kB / 0.5093 GB, free: 5.801 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.587e-06/0.5006, allocations: 0 / 0.5093 GB, free: 5.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006004/0.5012, allocations: 181.2 kB / 0.5095 GB, free: 5.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.5013, allocations: 158.2 kB / 0.5097 GB, free: 5.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005597/0.5019, allocations: 306.2 kB / 0.51 GB, free: 5.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.502, allocations: 25.7 kB / 0.51 GB, free: 5.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.5021, allocations: 179.1 kB / 0.5102 GB, free: 4.918 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.693e-05/0.5022, allocations: 39.91 kB / 0.5102 GB, free: 4.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.115e-05/0.5022, allocations: 0 / 0.5102 GB, free: 4.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.5024, allocations: 322.8 kB / 0.5105 GB, free: 4.555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.5025, allocations: 36.45 kB / 0.5105 GB, free: 4.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.5028, allocations: 187.8 kB / 0.5107 GB, free: 4.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.503, allocations: 59.91 kB / 0.5108 GB, free: 4.211 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.503, allocations: 0 / 0.5108 GB, free: 4.211 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004759/0.5035, allocations: 189.7 kB / 0.511 GB, free: 4.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.5035, allocations: 4 kB / 0.511 GB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.5035, allocations: 11.94 kB / 0.511 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.5036, allocations: 4 kB / 0.511 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002887/0.5039, allocations: 39.92 kB / 0.511 GB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/0.5039, allocations: 11.98 kB / 0.511 GB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.5041, allocations: 11.91 kB / 0.511 GB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.5042, allocations: 8 kB / 0.511 GB, free: 3.93 MB / 362.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.table.combiTimeTable.nextTimeEvent,sample.u,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 () * 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.0001837/0.5044, allocations: 139.3 kB / 0.5112 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.5047, allocations: 129.2 kB / 0.5113 GB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.5051, allocations: 123.6 kB / 0.5114 GB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5051, allocations: 4.188 kB / 0.5114 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.5051, allocations: 0 / 0.5114 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5051, allocations: 3.938 kB / 0.5114 GB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.5055, allocations: 246 kB / 0.5117 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5055, allocations: 3.953 kB / 0.5117 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.5058, allocations: 27.98 kB / 0.5117 GB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.5058, allocations: 4 kB / 0.5117 GB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.5058, allocations: 8 kB / 0.5117 GB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5058, allocations: 3.938 kB / 0.5117 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.5059, allocations: 0 / 0.5117 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.5064, allocations: 257.7 kB / 0.5119 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.5066, allocations: 132.8 kB / 0.5121 GB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.5067, allocations: 4 kB / 0.5121 GB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.5069, allocations: 4 kB / 0.5121 GB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.5069, allocations: 7.984 kB / 0.5121 GB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.507, allocations: 11.98 kB / 0.5121 GB, free: 2.723 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000384/0.5074, allocations: 234 kB / 0.5123 GB, free: 2.492 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5074, allocations: 0 / 0.5123 GB, free: 2.492 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000555/0.508, allocations: 67.83 kB / 0.5124 GB, free: 2.426 MB / 362.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,sample.u,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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001132/0.5091, allocations: 373.7 kB / 0.5127 GB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004777/0.5096, allocations: 152.4 kB / 0.5129 GB, free: 1.914 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.5096, allocations: 4.438 kB / 0.5129 GB, free: 1.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.048e-05/0.5097, allocations: 27.94 kB / 0.5129 GB, free: 1.883 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.5104, allocations: 101.3 kB / 0.513 GB, free: 1.781 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009612/0.5114, allocations: 377.5 kB / 0.5134 GB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.5119, allocations: 0.7797 MB / 0.5141 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.5121, allocations: 27.44 kB / 0.5142 GB, free: 0.543 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5121, allocations: 4 kB / 0.5142 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of Templates: time 0.2774/0.7895, allocations: 3.601 MB / 0.5177 GB, free: 87.99 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches