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.001335/0.001335, allocations: 110.1 kB / 17.28 MB, free: 6.055 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.001414/0.001414, allocations: 189.3 kB / 18.21 MB, free: 5.141 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.449/1.449, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 46.59 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08491/0.08618, allocations: 49.44 MB / 350.2 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003595/0.08981, allocations: 2.015 MB / 352.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.09168, allocations: 1.165 MB / 353.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.09187, allocations: 4 kB / 353.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.09224, allocations: 67.72 kB / 353.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002873/0.09254, allocations: 87.72 kB / 353.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008579/0.09341, allocations: 269.2 kB / 353.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002871/0.09371, allocations: 215.4 kB / 354 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.09384, allocations: 53.61 kB / 354.1 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.09398, allocations: 95.61 kB / 354.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.09414, allocations: 107.5 kB / 354.3 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.372e-05/0.09419, allocations: 12 kB / 354.3 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.09434, allocations: 63.92 kB / 354.4 MB, free: 388 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.236e-05/0.09444, allocations: 67.8 kB / 354.4 MB, free: 320 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.689e-05/0.09454, allocations: 107.3 kB / 354.5 MB, free: 212 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.09483, allocations: 215.8 kB / 354.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09485, allocations: 0 / 354.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09486, allocations: 0 / 354.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.09487, allocations: 0 / 354.7 MB, free: 15.99 MB / 302.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.0008452/0.09572, allocations: 0.5767 MB / 355.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.09576, allocations: 15.89 kB / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.554e-05/0.09584, allocations: 28.66 kB / 355.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.0962, allocations: 315.4 kB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.09623, allocations: 12.38 kB / 355.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.09626, allocations: 16.12 kB / 355.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.09683, allocations: 317 kB / 356 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.09686, allocations: 4 kB / 356 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.09688, allocations: 11.97 kB / 356 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.0969, allocations: 4 kB / 356 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.09708, allocations: 67.91 kB / 356.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.09762, allocations: 418.2 kB / 356.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.09799, allocations: 196 kB / 356.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.09815, allocations: 94.53 kB / 356.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.09819, allocations: 0 / 356.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.09837, allocations: 83.31 kB / 356.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.897e-06/0.09839, allocations: 7.938 kB / 356.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005358/0.09893, allocations: 253.3 kB / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.676e-05/0.09903, allocations: 174.2 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003338/0.09937, allocations: 346.9 kB / 357.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.0994, allocations: 25.7 kB / 357.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.284e-05/0.0995, allocations: 136.7 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.09954, allocations: 23.7 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.022e-05/0.09962, allocations: 53.94 kB / 357.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.09974, allocations: 342.8 kB / 358.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.301e-05/0.09984, allocations: 44.44 kB / 358.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.1, allocations: 194.9 kB / 358.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.1003, allocations: 207.2 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.1003, allocations: 4 kB / 358.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003785/0.1007, allocations: 233.2 kB / 358.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1007, allocations: 11.98 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.1007, allocations: 4 kB / 358.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1008, allocations: 8.531 kB / 358.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1009, allocations: 43.92 kB / 358.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.1009, allocations: 11.88 kB / 359 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1011, allocations: 19.84 kB / 359 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.1011, allocations: 15.98 kB / 359 MB, free: 11.32 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.0001589/0.1012, allocations: 172.5 kB / 359.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.1014, allocations: 137.6 kB / 359.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.684e-05/0.1015, allocations: 37.73 kB / 359.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1015, allocations: 4 kB / 359.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1015, allocations: 8.406 kB / 359.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1016, allocations: 0 / 359.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.1018, allocations: 261.4 kB / 359.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1018, allocations: 4.047 kB / 359.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.1019, allocations: 35.91 kB / 359.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1019, allocations: 7.938 kB / 359.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.102, allocations: 0 / 359.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.102, allocations: 4 kB / 359.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.102, allocations: 7.875 kB / 359.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003702/0.1023, allocations: 249.7 kB / 359.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1025, allocations: 132.6 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.1025, allocations: 8 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.1026, allocations: 8 kB / 360 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.1027, allocations: 15.86 kB / 360.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.1027, allocations: 12 kB / 360.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.1029, allocations: 249.9 kB / 360.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1029, allocations: 0 / 360.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.1033, allocations: 48 kB / 360.4 MB, free: 9.848 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.000941/0.1042, allocations: 422.4 kB / 360.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.1046, allocations: 172 kB / 360.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1046, allocations: 0 / 360.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.168e-05/0.1047, allocations: 31.97 kB / 361 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.1052, allocations: 129 kB / 361.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007349/0.1059, allocations: 0.5396 MB / 361.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.1062, allocations: 0.7635 MB / 362.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.446e-05/0.1063, allocations: 35.42 kB / 362.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1063, allocations: 4 kB / 362.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of Templates: time 0.006112/0.1124, allocations: 3.596 MB / 366 MB, free: 4.277 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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