Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 109.3 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 194.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 47.81 kB / 300 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.09238, allocations: 49.45 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003152/0.09557, allocations: 2.007 MB / 351.4 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.09731, allocations: 1.177 MB / 352.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.09743, allocations: 8 kB / 352.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.09773, allocations: 63.72 kB / 352.7 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.09794, allocations: 87.66 kB / 352.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006931/0.09865, allocations: 265.7 kB / 353 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.09887, allocations: 195.5 kB / 353.2 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.09899, allocations: 53.61 kB / 353.2 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.0991, allocations: 83.56 kB / 353.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.09923, allocations: 107.5 kB / 353.4 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.09926, allocations: 4 kB / 353.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.0994, allocations: 63.89 kB / 353.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.09948, allocations: 55.83 kB / 353.5 MB, free: 468 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.306e-05/0.09958, allocations: 99.27 kB / 353.6 MB, free: 368 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.09986, allocations: 275.4 kB / 353.9 MB, free: 92 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.09987, allocations: 0 / 353.9 MB, free: 92 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.09988, allocations: 0 / 353.9 MB, free: 92 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.09989, allocations: 3.938 kB / 353.9 MB, free: 88 kB / 286.1 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.000766/0.1007, allocations: 0.5779 MB / 354.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.1007, allocations: 8.031 kB / 354.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.601e-05/0.1008, allocations: 36.58 kB / 354.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.1011, allocations: 299.4 kB / 354.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1011, allocations: 12.36 kB / 354.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.1011, allocations: 20.12 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.1017, allocations: 317.1 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.1017, allocations: 4 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.1017, allocations: 8 kB / 355.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1017, allocations: 0 / 355.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.1019, allocations: 67.91 kB / 355.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.1024, allocations: 418.2 kB / 355.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.1027, allocations: 192 kB / 355.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.1029, allocations: 94.53 kB / 355.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1029, allocations: 12.16 kB / 356 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/0.1031, allocations: 83.31 kB / 356 MB, free: 13.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.703e-06/0.1031, allocations: 0 / 356 MB, free: 13.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.000514/0.1036, allocations: 253.1 kB / 356.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/0.1037, allocations: 170.2 kB / 356.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.104, allocations: 338.9 kB / 356.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.1041, allocations: 37.7 kB / 356.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/0.1042, allocations: 132.6 kB / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.1042, allocations: 35.69 kB / 357 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.731e-05/0.1043, allocations: 49.94 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1044, allocations: 342.8 kB / 357.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-05/0.1045, allocations: 40.44 kB / 357.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.1047, allocations: 190.9 kB / 357.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.1049, allocations: 219.4 kB / 357.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.1049, allocations: 4 kB / 357.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003553/0.1053, allocations: 241.3 kB / 358 MB, free: 11.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1053, allocations: 8 kB / 358 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1053, allocations: 4.312 kB / 358.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1054, allocations: 4 kB / 358.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.1055, allocations: 35.92 kB / 358.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.1055, allocations: 11.94 kB / 358.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.1056, allocations: 23.83 kB / 358.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.1057, allocations: 15.97 kB / 358.1 MB, free: 11.43 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001623/0.1058, allocations: 188.5 kB / 358.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002024/0.106, allocations: 137.3 kB / 358.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.586e-05/0.1061, allocations: 30.2 kB / 358.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1061, allocations: 4 kB / 358.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1061, allocations: 3.938 kB / 358.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1061, allocations: 4 kB / 358.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.1064, allocations: 261.4 kB / 358.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1064, allocations: 3.938 kB / 358.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.1065, allocations: 27.98 kB / 358.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1065, allocations: 0 / 358.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.1065, allocations: 15.94 kB / 358.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1066, allocations: 0 / 358.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1066, allocations: 3.938 kB / 358.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/0.1069, allocations: 238.4 kB / 359 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.1071, allocations: 132.6 kB / 359.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.1071, allocations: 4 kB / 359.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/0.1072, allocations: 12 kB / 359.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.232e-05/0.1073, allocations: 15.98 kB / 359.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.1073, allocations: 11.94 kB / 359.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002186/0.1075, allocations: 249.9 kB / 359.5 MB, free: 10 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1075, allocations: 3.938 kB / 359.5 MB, free: 10 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003076/0.1079, allocations: 48 kB / 359.5 MB, free: 9.953 MB / 302.1 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,sample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009608/0.1088, allocations: 437.5 kB / 359.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003248/0.1092, allocations: 153.4 kB / 360.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1092, allocations: 4 kB / 360.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.973e-05/0.1093, allocations: 28.98 kB / 360.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.1097, allocations: 123.5 kB / 360.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007079/0.1105, allocations: 0.5115 MB / 360.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.1108, allocations: 0.7755 MB / 361.5 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.79e-05/0.1109, allocations: 30.5 kB / 361.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.074e-05/0.111, allocations: 35.36 kB / 361.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.111, allocations: 4 kB / 361.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of Templates: time 0.006656/0.1176, allocations: 3.324 MB / 364.9 MB, free: 4.664 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches