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.001442/0.001442, allocations: 177.1 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.601/1.601, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007578/0.0007579, allocations: 94.34 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.0671/0.0671, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005934/0.0005934, allocations: 12 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09699, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.002608/0.09966, allocations: 1.618 MB / 444 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1017, allocations: 1.05 MB / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1018, allocations: 4 kB / 445 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.1022, allocations: 63.73 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002741/0.1025, allocations: 83.7 kB / 445.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1035, allocations: 239.5 kB / 445.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002592/0.1038, allocations: 183.4 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1039, allocations: 37.66 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.1041, allocations: 79.62 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.1042, allocations: 83.59 kB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.1043, allocations: 8 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.1044, allocations: 47.97 kB / 445.8 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.526e-05/0.1045, allocations: 55.81 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.145e-05/0.1046, allocations: 69.45 kB / 446 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.1049, allocations: 199.9 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1049, allocations: 4 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1049, allocations: 3.938 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.1049, allocations: 0 / 446.2 MB, free: 12.61 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.000794/0.1057, allocations: 0.5311 MB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.1058, allocations: 8.031 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.612e-05/0.1059, allocations: 31.62 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.1063, allocations: 298.2 kB / 447 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.1063, allocations: 16 kB / 447 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.1064, allocations: 16 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.1071, allocations: 319 kB / 447.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1072, allocations: 3.938 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.1072, allocations: 4 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1072, allocations: 4 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.1075, allocations: 67.94 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005813/0.1081, allocations: 418.2 kB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005029/0.1086, allocations: 196 kB / 448.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.1089, allocations: 90.55 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.1089, allocations: 4.234 kB / 448.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.1091, allocations: 83.3 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.655e-06/0.1091, allocations: 0 / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007437/0.1099, allocations: 261 kB / 448.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.11, allocations: 174.2 kB / 448.7 MB, free: 9.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.1104, allocations: 338.9 kB / 449 MB, free: 9.512 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.1104, allocations: 33.7 kB / 449 MB, free: 9.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.1105, allocations: 128.7 kB / 449.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.1106, allocations: 28.08 kB / 449.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.264e-05/0.1106, allocations: 7.938 kB / 449.2 MB, free: 9.305 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.499e-05/0.1107, allocations: 346.8 kB / 449.5 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1108, allocations: 40.39 kB / 449.6 MB, free: 8.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.1111, allocations: 191.4 kB / 449.7 MB, free: 8.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1113, allocations: 67.92 kB / 449.8 MB, free: 8.602 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1113, allocations: 0 / 449.8 MB, free: 8.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005373/0.1119, allocations: 237 kB / 450 MB, free: 8.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1119, allocations: 4 kB / 450 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-06/0.1119, allocations: 4 kB / 450 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.1119, allocations: 8 kB / 450.1 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.1122, allocations: 44.41 kB / 450.1 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.1122, allocations: 12.25 kB / 450.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.1124, allocations: 23.83 kB / 450.1 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.1125, allocations: 12 kB / 450.1 MB, free: 8.258 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.0001835/0.1127, allocations: 183.7 kB / 450.3 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.1129, allocations: 141.2 kB / 450.5 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.048e-05/0.113, allocations: 37.73 kB / 450.5 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1131, allocations: 4 kB / 450.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1131, allocations: 8.266 kB / 450.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1131, allocations: 0 / 450.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002353/0.1133, allocations: 261.5 kB / 450.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1134, allocations: 0 / 450.8 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001977/0.1136, allocations: 27.92 kB / 450.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.1136, allocations: 4 kB / 450.8 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.1136, allocations: 8 kB / 450.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.1136, allocations: 3.984 kB / 450.8 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1136, allocations: 0 / 450.8 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.1141, allocations: 256.6 kB / 451.1 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1143, allocations: 124.7 kB / 451.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.1144, allocations: 8 kB / 451.2 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.1145, allocations: 11.98 kB / 451.2 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.1146, allocations: 4 kB / 451.2 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.1146, allocations: 15.98 kB / 451.2 MB, free: 7.074 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000293/0.1149, allocations: 245.9 kB / 451.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1149, allocations: 4 kB / 451.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005245/0.1155, allocations: 47.95 kB / 451.5 MB, free: 6.785 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.001192/0.1167, allocations: 437.5 kB / 451.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004484/0.1171, allocations: 152.7 kB / 452.1 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1172, allocations: 0 / 452.1 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.1173, allocations: 27.98 kB / 452.1 MB, free: 6.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007142/0.118, allocations: 125 kB / 452.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009023/0.1189, allocations: 0.5224 MB / 452.8 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.1192, allocations: 0.7716 MB / 453.5 MB, free: 4.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.308e-05/0.1193, allocations: 27.42 kB / 453.6 MB, free: 4.676 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1193, allocations: 0 / 453.6 MB, free: 4.676 MB / 298.7 MB Notification: Performance of Templates: time 0.007165/0.1265, allocations: 3.57 MB / 457.1 MB, free: 1.094 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