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/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.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.002112/0.002112, allocations: 181.3 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.768/2.768, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001049/0.001049, allocations: 82.41 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1735/0.1735, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007279/0.000728, allocations: 16 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1876, allocations: 50.3 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6987/0.8865, allocations: 82.39 MB / 0.5131 GB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003554/0.8869, allocations: 89.31 kB / 0.5132 GB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03667/0.9236, allocations: 9.153 MB / 0.5221 GB, free: 7.344 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.135e-06/0.9237, allocations: 3.938 kB / 0.5221 GB, free: 7.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.713e-05/0.9238, allocations: 15.83 kB / 0.5221 GB, free: 7.328 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.001922/0.9258, allocations: 0.556 MB / 0.5227 GB, free: 6.734 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.744e-05/0.9259, allocations: 15.97 kB / 0.5227 GB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.9262, allocations: 28.56 kB / 0.5227 GB, free: 6.691 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.9272, allocations: 320.9 kB / 0.523 GB, free: 6.363 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.9273, allocations: 16.12 kB / 0.523 GB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.9274, allocations: 15.38 kB / 0.523 GB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.9284, allocations: 328.1 kB / 0.5234 GB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.9284, allocations: 192 / 0.5234 GB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.9285, allocations: 10.94 kB / 0.5234 GB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.9285, allocations: 0 / 0.5234 GB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.9288, allocations: 76.45 kB / 0.5234 GB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.9299, allocations: 433 kB / 0.5239 GB, free: 5.578 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.9305, allocations: 202.2 kB / 0.5241 GB, free: 5.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.9307, allocations: 97.72 kB / 0.5241 GB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.182e-05/0.9308, allocations: 0 / 0.5241 GB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.9311, allocations: 85.25 kB / 0.5242 GB, free: 5.234 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.026e-06/0.9311, allocations: 0 / 0.5242 GB, free: 5.234 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.000896/0.932, allocations: 249.9 kB / 0.5245 GB, free: 5.043 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/0.9322, allocations: 180.6 kB / 0.5246 GB, free: 4.836 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008413/0.9331, allocations: 339.2 kB / 0.525 GB, free: 4.555 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.9331, allocations: 37.27 kB / 0.525 GB, free: 4.516 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.9333, allocations: 133.3 kB / 0.5251 GB, free: 4.414 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.9334, allocations: 32.89 kB / 0.5252 GB, free: 4.391 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.9334, allocations: 0 / 0.5252 GB, free: 4.391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.9336, allocations: 341.9 kB / 0.5255 GB, free: 4.059 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.9337, allocations: 46.88 kB / 0.5255 GB, free: 4.023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.934, allocations: 193.5 kB / 0.5257 GB, free: 3.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.9345, allocations: 221.8 kB / 0.5259 GB, free: 3.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.9345, allocations: 3.938 kB / 0.5259 GB, free: 3.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005845/0.9351, allocations: 235.7 kB / 0.5261 GB, free: 3.359 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.9351, allocations: 8 kB / 0.5262 GB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.9351, allocations: 4 kB / 0.5262 GB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.314e-05/0.9352, allocations: 4 kB / 0.5262 GB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.9354, allocations: 42.98 kB / 0.5262 GB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.9355, allocations: 7.984 kB / 0.5262 GB, free: 3.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.9357, allocations: 15.84 kB / 0.5262 GB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.9358, allocations: 12.28 kB / 0.5262 GB, free: 3.273 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.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 () * 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.000275/0.936, allocations: 188.5 kB / 0.5264 GB, free: 3.102 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.9364, allocations: 141.2 kB / 0.5266 GB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004317/0.9368, allocations: 133.3 kB / 0.5267 GB, free: 2.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.9368, allocations: 8.031 kB / 0.5267 GB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.9368, allocations: 0 / 0.5267 GB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.9369, allocations: 0 / 0.5267 GB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.9373, allocations: 280 kB / 0.527 GB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.9373, allocations: 4 kB / 0.527 GB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.9375, allocations: 35.91 kB / 0.527 GB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.9376, allocations: 0 / 0.527 GB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.9376, allocations: 6.938 kB / 0.527 GB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.9376, allocations: 4 kB / 0.527 GB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.9376, allocations: 0 / 0.527 GB, free: 2.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.9382, allocations: 251 kB / 0.5272 GB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.9384, allocations: 130.9 kB / 0.5274 GB, free: 2.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.9385, allocations: 11.62 kB / 0.5274 GB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.9387, allocations: 11.48 kB / 0.5274 GB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/0.9388, allocations: 11.66 kB / 0.5274 GB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.9388, allocations: 15.92 kB / 0.5274 GB, free: 2.148 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004321/0.9393, allocations: 246.9 kB / 0.5277 GB, free: 1.953 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.9393, allocations: 0 / 0.5277 GB, free: 1.953 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007318/0.94, allocations: 78.22 kB / 0.5277 GB, free: 1.887 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,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) * 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.001734/0.9418, allocations: 436.5 kB / 0.5281 GB, free: 1.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007019/0.9425, allocations: 172.6 kB / 0.5283 GB, free: 1.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.9425, allocations: 2.625 kB / 0.5283 GB, free: 1.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.9427, allocations: 39.17 kB / 0.5283 GB, free: 1.297 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009577/0.9436, allocations: 116.8 kB / 0.5285 GB, free: 1.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.9453, allocations: 0.5417 MB / 0.529 GB, free: 0.6797 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.9458, allocations: 0.7684 MB / 0.5297 GB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.946, allocations: 30.67 kB / 0.5298 GB, free: 15.86 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/0.946, allocations: 0 / 0.5298 GB, free: 15.86 MB / 346.7 MB Notification: Performance of Templates: time 0.01405/0.96, allocations: 3.636 MB / 0.5333 GB, free: 12.25 MB / 346.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