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.0009466/0.0009467, allocations: 174 kB / 16.76 MB, free: 5.047 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.529/1.529, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008339/0.0008334, allocations: 93.41 kB / 271.3 MB, free: 8.262 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.06927/0.06927, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004213, allocations: 16 kB / 392.6 MB, free: 66.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08114, allocations: 50.37 MB / 443 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.001945/0.08313, allocations: 1.622 MB / 444.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.08444, allocations: 1.03 MB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.08456, allocations: 8 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002807/0.08485, allocations: 63.73 kB / 445.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.08506, allocations: 79.7 kB / 445.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.08569, allocations: 235.5 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.08589, allocations: 187.5 kB / 446.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.08602, allocations: 37.61 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.507e-05/0.08612, allocations: 87.61 kB / 446.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.08624, allocations: 83.61 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.08628, allocations: 8 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.0864, allocations: 47.97 kB / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.969e-05/0.08646, allocations: 55.81 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.085e-05/0.08655, allocations: 109.1 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.08675, allocations: 203.9 kB / 446.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.08676, allocations: 4 kB / 446.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.08677, allocations: 3.938 kB / 446.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.08678, allocations: 3.938 kB / 446.8 MB, free: 12.27 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.0006467/0.08743, allocations: 0.5273 MB / 447.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.08747, allocations: 8.031 kB / 447.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.683e-05/0.08753, allocations: 36.55 kB / 447.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.08783, allocations: 311.3 kB / 447.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.08786, allocations: 16.34 kB / 447.7 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.08789, allocations: 20.12 kB / 447.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004782/0.08838, allocations: 311.1 kB / 448 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.0884, allocations: 8 kB / 448 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.08842, allocations: 4 kB / 448 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.08843, allocations: 4 kB / 448 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.08858, allocations: 67.91 kB / 448.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004324/0.08903, allocations: 410.3 kB / 448.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.08933, allocations: 199.9 kB / 448.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.08947, allocations: 94.53 kB / 448.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.08951, allocations: 8 kB / 448.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001483/0.08966, allocations: 79.31 kB / 448.9 MB, free: 9.973 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.08967, allocations: 0 / 448.9 MB, free: 9.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004582/0.09014, allocations: 241.3 kB / 449.1 MB, free: 9.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.09021, allocations: 182.2 kB / 449.3 MB, free: 9.516 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.09048, allocations: 347 kB / 449.6 MB, free: 9.168 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.0905, allocations: 29.7 kB / 449.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/0.09057, allocations: 132.6 kB / 449.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.09061, allocations: 23.7 kB / 449.8 MB, free: 8.973 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.869e-06/0.09062, allocations: 8 kB / 449.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.09069, allocations: 346.7 kB / 450.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.041e-05/0.09077, allocations: 40.81 kB / 450.2 MB, free: 8.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.0909, allocations: 186.9 kB / 450.4 MB, free: 8.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.09113, allocations: 215.2 kB / 450.6 MB, free: 8.066 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.09115, allocations: 0 / 450.6 MB, free: 8.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002975/0.09145, allocations: 237.4 kB / 450.8 MB, free: 7.828 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.09147, allocations: 7.984 kB / 450.8 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.09149, allocations: 4 kB / 450.8 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.09151, allocations: 8 kB / 450.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.09165, allocations: 35.92 kB / 450.9 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.09166, allocations: 8.25 kB / 450.9 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.09177, allocations: 23.84 kB / 450.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.0918, allocations: 15.98 kB / 450.9 MB, free: 7.727 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.table.combiTimeTable.nextTimeEvent,table.y,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.0001261/0.09193, allocations: 188.7 kB / 451.1 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.09209, allocations: 141.2 kB / 451.2 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.802e-05/0.09215, allocations: 33.73 kB / 451.3 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.09216, allocations: 0 / 451.3 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.09217, allocations: 7.938 kB / 451.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.09218, allocations: 0 / 451.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.09234, allocations: 265.7 kB / 451.5 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.09235, allocations: 8 kB / 451.6 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.09246, allocations: 23.98 kB / 451.6 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.09248, allocations: 8 kB / 451.6 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.0925, allocations: 4 kB / 451.6 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.0925, allocations: 4 kB / 451.6 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.09251, allocations: 3.938 kB / 451.6 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.0928, allocations: 246.2 kB / 451.8 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.0929, allocations: 128.7 kB / 452 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.09294, allocations: 12 kB / 452 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.942e-05/0.09302, allocations: 8 kB / 452 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.09308, allocations: 11.92 kB / 452 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.0931, allocations: 15.98 kB / 452 MB, free: 6.531 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.09328, allocations: 245.9 kB / 452.2 MB, free: 6.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09329, allocations: 0 / 452.2 MB, free: 6.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002801/0.09357, allocations: 44 kB / 452.3 MB, free: 6.25 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,table.y,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.nextTimeEventScaled,table.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.0007922/0.09437, allocations: 437.6 kB / 452.7 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002738/0.09465, allocations: 143.8 kB / 452.9 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.09466, allocations: 0 / 452.9 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.886e-05/0.09474, allocations: 32.98 kB / 452.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.09521, allocations: 125.1 kB / 453 MB, free: 5.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006703/0.09589, allocations: 0.5223 MB / 453.5 MB, free: 4.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.09613, allocations: 0.7716 MB / 454.3 MB, free: 4.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.779e-05/0.09619, allocations: 35.36 kB / 454.3 MB, free: 4.133 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.0962, allocations: 0 / 454.3 MB, free: 4.133 MB / 298.7 MB Notification: Performance of Templates: time 0.004667/0.1009, allocations: 3.551 MB / 457.9 MB, free: 0.5703 MB / 298.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/jenkins/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