Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_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_cpp_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.0009983/0.000998, allocations: 181.5 kB / 17.46 MB, free: 4.359 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.367/1.367, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007204/0.0007204, allocations: 93.03 kB / 272 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07075/0.07075, allocations: 12.19 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004135/0.0004136, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08837/0.0888, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3035/0.3924, allocations: 82.31 MB / 0.513 GB, free: 12.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.3926, allocations: 88.97 kB / 0.5131 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02008/0.4127, allocations: 8.951 MB / 0.5218 GB, free: 7.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4127, allocations: 0 / 0.5218 GB, free: 7.578 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.4128, allocations: 8 kB / 0.5218 GB, free: 7.57 MB / 330.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.0006098/0.4134, allocations: 0.5267 MB / 0.5224 GB, free: 7.008 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.4134, allocations: 8.031 kB / 0.5224 GB, free: 7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.543e-05/0.4135, allocations: 28.28 kB / 0.5224 GB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.4139, allocations: 292.2 kB / 0.5227 GB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.4139, allocations: 11.5 kB / 0.5227 GB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.4139, allocations: 11.62 kB / 0.5227 GB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/0.4144, allocations: 307 kB / 0.523 GB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4145, allocations: 192 / 0.523 GB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.4145, allocations: 7.312 kB / 0.523 GB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.4145, allocations: 4 kB / 0.523 GB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.4146, allocations: 61.66 kB / 0.5231 GB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.4151, allocations: 395 kB / 0.5234 GB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.4154, allocations: 174.4 kB / 0.5236 GB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.4155, allocations: 95.17 kB / 0.5237 GB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.4155, allocations: 0 / 0.5237 GB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/0.4156, allocations: 77.67 kB / 0.5238 GB, free: 5.645 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.933e-06/0.4157, allocations: 0 / 0.5238 GB, free: 5.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004382/0.4161, allocations: 231.1 kB / 0.524 GB, free: 5.469 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.4162, allocations: 148.3 kB / 0.5241 GB, free: 5.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.4164, allocations: 275.3 kB / 0.5244 GB, free: 5.066 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.4164, allocations: 33.08 kB / 0.5244 GB, free: 5.031 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.561e-05/0.4165, allocations: 119.5 kB / 0.5245 GB, free: 4.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.4165, allocations: 30.33 kB / 0.5246 GB, free: 4.906 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.4165, allocations: 3.938 kB / 0.5246 GB, free: 4.906 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.721e-05/0.4166, allocations: 340.1 kB / 0.5249 GB, free: 4.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.329e-05/0.4167, allocations: 34.95 kB / 0.5249 GB, free: 4.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.4168, allocations: 169.3 kB / 0.5251 GB, free: 4.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.417, allocations: 206.4 kB / 0.5253 GB, free: 4.117 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.417, allocations: 0 / 0.5253 GB, free: 4.117 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000292/0.4173, allocations: 227.2 kB / 0.5255 GB, free: 3.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.4173, allocations: 9.094 kB / 0.5255 GB, free: 3.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.4173, allocations: 4 kB / 0.5255 GB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.4173, allocations: 11.94 kB / 0.5255 GB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.262e-05/0.4174, allocations: 27.05 kB / 0.5255 GB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.4174, allocations: 11.94 kB / 0.5256 GB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.4175, allocations: 11.44 kB / 0.5256 GB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.4176, allocations: 8.281 kB / 0.5256 GB, free: 3.855 MB / 330.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,sample.u,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.0001138/0.4177, allocations: 175.8 kB / 0.5257 GB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.4178, allocations: 125.1 kB / 0.5259 GB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/0.418, allocations: 122.2 kB / 0.526 GB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.4181, allocations: 4 kB / 0.526 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4181, allocations: 0 / 0.526 GB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4181, allocations: 3.984 kB / 0.526 GB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.4182, allocations: 258.7 kB / 0.5262 GB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.4182, allocations: 4 kB / 0.5262 GB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.044e-05/0.4183, allocations: 8 kB / 0.5262 GB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4183, allocations: 0 / 0.5262 GB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.4183, allocations: 10.67 kB / 0.5263 GB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4183, allocations: 0 / 0.5263 GB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4183, allocations: 7.938 kB / 0.5263 GB, free: 3.191 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.4186, allocations: 228.5 kB / 0.5265 GB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.239e-05/0.4187, allocations: 127.7 kB / 0.5266 GB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.4187, allocations: 7.781 kB / 0.5266 GB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.918e-05/0.4188, allocations: 7.938 kB / 0.5266 GB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.4189, allocations: 11.92 kB / 0.5266 GB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.4189, allocations: 4 kB / 0.5266 GB, free: 2.832 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001487/0.419, allocations: 197.5 kB / 0.5268 GB, free: 2.672 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4191, allocations: 0 / 0.5268 GB, free: 2.672 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002923/0.4193, allocations: 42.69 kB / 0.5269 GB, free: 2.637 MB / 330.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,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.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * 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 (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.000801/0.4202, allocations: 441.5 kB / 0.5273 GB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.4205, allocations: 144 kB / 0.5274 GB, free: 2.102 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4205, allocations: 4 kB / 0.5274 GB, free: 2.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.4205, allocations: 43.22 kB / 0.5275 GB, free: 2.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.421, allocations: 109 kB / 0.5276 GB, free: 1.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005341/0.4215, allocations: 464.1 kB / 0.528 GB, free: 1.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.4217, allocations: 0.7585 MB / 0.5288 GB, free: 0.7578 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.4217, allocations: 31.36 kB / 0.5288 GB, free: 0.7266 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4217, allocations: 0 / 0.5288 GB, free: 0.7266 MB / 330.7 MB Notification: Performance of Templates: time 0.005355/0.4271, allocations: 3.24 MB / 0.5319 GB, free: 13.51 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches