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.001068/0.001068, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001148/0.001148, allocations: 191 kB / 18 MB, free: 4.977 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.529/1.529, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 43.92 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3829, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003749/0.3867, allocations: 1.96 MB / 402.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002214/0.3889, allocations: 1.192 MB / 403.9 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.3891, allocations: 7.938 kB / 403.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004646/0.3896, allocations: 71.66 kB / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000358/0.39, allocations: 103.5 kB / 404 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008954/0.3909, allocations: 302.2 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003135/0.3912, allocations: 207.4 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.3914, allocations: 49.66 kB / 404.6 MB, free: 5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.3915, allocations: 99.55 kB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.3917, allocations: 99.59 kB / 404.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.3917, allocations: 12 kB / 404.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.3919, allocations: 71.95 kB / 404.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.392, allocations: 83.69 kB / 404.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.3921, allocations: 99.34 kB / 405 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003899/0.3925, allocations: 292.1 kB / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3926, allocations: 0 / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3926, allocations: 0 / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3926, allocations: 4 kB / 405.3 MB, free: 4.258 MB / 318.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.001031/0.3936, allocations: 0.5739 MB / 405.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.3937, allocations: 11.89 kB / 405.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.3938, allocations: 32.56 kB / 406 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.3943, allocations: 311.5 kB / 406.3 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.3943, allocations: 12.36 kB / 406.3 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.759e-05/0.3943, allocations: 20.12 kB / 406.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007033/0.3951, allocations: 323.4 kB / 406.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.3951, allocations: 0 / 406.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.3951, allocations: 12 kB / 406.6 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.3951, allocations: 0 / 406.6 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.3953, allocations: 67.91 kB / 406.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006276/0.3959, allocations: 414.3 kB / 407.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.3964, allocations: 200 kB / 407.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.3965, allocations: 90.53 kB / 407.4 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-05/0.3966, allocations: 7.938 kB / 407.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.3968, allocations: 83.31 kB / 407.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.445e-06/0.3968, allocations: 0 / 407.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006232/0.3974, allocations: 249.2 kB / 407.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.3976, allocations: 170.6 kB / 407.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.398, allocations: 339 kB / 408.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.398, allocations: 37.64 kB / 408.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.3981, allocations: 140.6 kB / 408.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.3982, allocations: 35.64 kB / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.658e-05/0.3983, allocations: 49.94 kB / 408.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3984, allocations: 342.8 kB / 408.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.3985, allocations: 40.44 kB / 408.8 MB, free: 468 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.3988, allocations: 191.6 kB / 409 MB, free: 212 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3991, allocations: 211.2 kB / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3991, allocations: 4.25 kB / 409.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003632/0.3994, allocations: 237 kB / 409.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3995, allocations: 8.531 kB / 409.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3995, allocations: 8.047 kB / 409.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.3995, allocations: 7.984 kB / 409.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.3997, allocations: 35.92 kB / 409.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.3997, allocations: 15.92 kB / 409.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.3998, allocations: 23.83 kB / 409.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.3999, allocations: 12 kB / 409.6 MB, free: 15.59 MB / 334.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.0001718/0.4, allocations: 172 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.4002, allocations: 145.2 kB / 409.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.329e-05/0.4003, allocations: 34.2 kB / 409.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.4003, allocations: 4 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4004, allocations: 3.938 kB / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4004, allocations: 0 / 409.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.4006, allocations: 269.5 kB / 410.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4006, allocations: 3.938 kB / 410.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.4007, allocations: 27.98 kB / 410.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.4007, allocations: 0 / 410.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.4008, allocations: 8 kB / 410.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.4008, allocations: 3.938 kB / 410.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4008, allocations: 7.938 kB / 410.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004146/0.4012, allocations: 243.8 kB / 410.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.4014, allocations: 124.8 kB / 410.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/0.4014, allocations: 11.94 kB / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.855e-05/0.4015, allocations: 0 / 410.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.4016, allocations: 19.92 kB / 410.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.4016, allocations: 8.062 kB / 410.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.4019, allocations: 253.9 kB / 410.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4019, allocations: 0 / 410.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003156/0.4022, allocations: 47.94 kB / 410.9 MB, free: 14.13 MB / 334.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.001068/0.4033, allocations: 433.8 kB / 411.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.4036, allocations: 151.8 kB / 411.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4036, allocations: 0 / 411.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.202e-05/0.4037, allocations: 31.92 kB / 411.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.4042, allocations: 128.3 kB / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007867/0.405, allocations: 461.5 kB / 412.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.4054, allocations: 0.7712 MB / 412.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.106e-05/0.4055, allocations: 38.5 kB / 412.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.263e-05/0.4056, allocations: 31.36 kB / 412.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4056, allocations: 3.938 kB / 413 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Templates: time 0.007589/0.4132, allocations: 3.51 MB / 416.5 MB, free: 8.707 MB / 334.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