Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001378, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001949, allocations: 62.41 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1069, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003941/0.1109, allocations: 1.971 MB / 360.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002468/0.1134, allocations: 1.344 MB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.1136, allocations: 7.938 kB / 361.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000326/0.1139, allocations: 75.61 kB / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000398/0.1144, allocations: 139.4 kB / 362 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008258/0.1152, allocations: 266.6 kB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.1155, allocations: 219.4 kB / 362.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1156, allocations: 64.23 kB / 362.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.1158, allocations: 95.56 kB / 362.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.116, allocations: 103.5 kB / 362.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.116, allocations: 12 kB / 362.7 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1162, allocations: 71.97 kB / 362.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1163, allocations: 71.69 kB / 362.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.1164, allocations: 99.34 kB / 362.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.1169, allocations: 291.3 kB / 363.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1169, allocations: 4 kB / 363.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1169, allocations: 0 / 363.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1169, allocations: 0 / 363.2 MB, free: 9.125 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.001007/0.1179, allocations: 0.5739 MB / 363.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.118, allocations: 19.97 kB / 363.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.871e-05/0.1181, allocations: 28.56 kB / 363.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.1185, allocations: 311.4 kB / 364.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.1185, allocations: 12.38 kB / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.1186, allocations: 20.12 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.1192, allocations: 319.9 kB / 364.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1192, allocations: 4 kB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.1193, allocations: 8 kB / 364.5 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1193, allocations: 4 kB / 364.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.1195, allocations: 67.89 kB / 364.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006344/0.1201, allocations: 414.2 kB / 365 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004345/0.1206, allocations: 200 kB / 365.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.1207, allocations: 86.7 kB / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.1208, allocations: 15.97 kB / 365.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.121, allocations: 75.39 kB / 365.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.507e-06/0.121, allocations: 3.984 kB / 365.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005886/0.1216, allocations: 257 kB / 365.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.1217, allocations: 174.2 kB / 365.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004566/0.1222, allocations: 354.9 kB / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1222, allocations: 25.7 kB / 366.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.1224, allocations: 144.6 kB / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.1224, allocations: 31.69 kB / 366.3 MB, free: 5.734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.332e-05/0.1225, allocations: 53.94 kB / 366.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1227, allocations: 338.8 kB / 366.7 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1228, allocations: 44.44 kB / 366.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.123, allocations: 188.6 kB / 366.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.1234, allocations: 207.2 kB / 367.1 MB, free: 4.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1234, allocations: 8 kB / 367.1 MB, free: 4.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004261/0.1238, allocations: 236.9 kB / 367.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.1238, allocations: 4.531 kB / 367.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1238, allocations: 8 kB / 367.4 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.1239, allocations: 8.312 kB / 367.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.1241, allocations: 39.86 kB / 367.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.1241, allocations: 11.94 kB / 367.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.1242, allocations: 27.83 kB / 367.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1243, allocations: 12 kB / 367.5 MB, free: 4.434 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.0002055/0.1245, allocations: 172 kB / 367.7 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/0.1247, allocations: 141.3 kB / 367.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.877e-05/0.1248, allocations: 33.78 kB / 367.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.1248, allocations: 4 kB / 367.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.1248, allocations: 3.938 kB / 367.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.1248, allocations: 4 kB / 367.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002835/0.1251, allocations: 265.4 kB / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1251, allocations: 0 / 368.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.1253, allocations: 36.39 kB / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1253, allocations: 0 / 368.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.1253, allocations: 7.984 kB / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1253, allocations: 0 / 368.1 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/0.1253, allocations: 11.94 kB / 368.1 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004237/0.1258, allocations: 246.2 kB / 368.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.1259, allocations: 124.7 kB / 368.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.1259, allocations: 8 kB / 368.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.253e-05/0.126, allocations: 11.98 kB / 368.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.113e-05/0.1261, allocations: 15.88 kB / 368.5 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.1261, allocations: 15.98 kB / 368.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002869/0.1264, allocations: 253.9 kB / 368.8 MB, free: 3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1264, allocations: 0 / 368.8 MB, free: 3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.1268, allocations: 48 kB / 368.9 MB, free: 2.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.001616/0.1284, allocations: 424.1 kB / 369.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000417/0.1288, allocations: 167.7 kB / 369.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1289, allocations: 0 / 369.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.374e-05/0.1289, allocations: 27.98 kB / 369.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.1295, allocations: 134.8 kB / 369.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008578/0.1304, allocations: 0.4998 MB / 370.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.1309, allocations: 0.7716 MB / 370.9 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.198e-05/0.1309, allocations: 35.36 kB / 370.9 MB, free: 1 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1309, allocations: 0 / 370.9 MB, free: 1 MB / 302.1 MB Notification: Performance of Templates: time 0.1449/0.2759, allocations: 3.655 MB / 374.6 MB, free: 19.75 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches