Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.001539, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001688, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.9 MB, free: 8.973 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.08 kB / 306.9 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1139, allocations: 50.53 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003449/0.1174, allocations: 1.942 MB / 359.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1195, allocations: 1.278 MB / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.1197, allocations: 3.938 kB / 360.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003483/0.1201, allocations: 67.8 kB / 360.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003382/0.1205, allocations: 107.6 kB / 360.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.1212, allocations: 199.2 kB / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.1214, allocations: 167.5 kB / 361.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.1216, allocations: 33.52 kB / 361.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1217, allocations: 67.64 kB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.1218, allocations: 79.62 kB / 361.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.1219, allocations: 4 kB / 361.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.122, allocations: 63.89 kB / 361.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.1222, allocations: 47.83 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.51e-05/0.1223, allocations: 75.47 kB / 361.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002587/0.1225, allocations: 183.9 kB / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1225, allocations: 0 / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1226, allocations: 0 / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1226, allocations: 0 / 361.7 MB, free: 9.941 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007643/0.1233, allocations: 0.5427 MB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1234, allocations: 12.02 kB / 362.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.734e-05/0.1235, allocations: 24.66 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1238, allocations: 283.6 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.1238, allocations: 4.375 kB / 362.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.1239, allocations: 12.12 kB / 362.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.1242, allocations: 151.6 kB / 362.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1242, allocations: 7.938 kB / 362.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.1242, allocations: 0 / 362.8 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1243, allocations: 4 kB / 362.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.1244, allocations: 35.98 kB / 362.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.1249, allocations: 386.3 kB / 363.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.1252, allocations: 123.9 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.294e-05/0.1253, allocations: 42.56 kB / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1253, allocations: 0 / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.1256, allocations: 83.31 kB / 363.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.654e-06/0.1256, allocations: 4 kB / 363.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003873/0.126, allocations: 145.3 kB / 363.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/0.1261, allocations: 166.2 kB / 363.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.1265, allocations: 334.9 kB / 364.1 MB, free: 7.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.1265, allocations: 33.7 kB / 364.1 MB, free: 7.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.1266, allocations: 132 kB / 364.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/0.1266, allocations: 15.81 kB / 364.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.1267, allocations: 33.64 kB / 364.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1268, allocations: 338.7 kB / 364.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-05/0.1269, allocations: 23.98 kB / 364.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.127, allocations: 86.84 kB / 364.7 MB, free: 6.641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.1272, allocations: 80.47 kB / 364.8 MB, free: 6.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.1272, allocations: 12 kB / 364.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002429/0.1274, allocations: 125.3 kB / 364.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1275, allocations: 8 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1275, allocations: 3.984 kB / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1275, allocations: 0 / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.1276, allocations: 16 kB / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1276, allocations: 0 / 364.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.45e-05/0.1277, allocations: 11.92 kB / 365 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.1277, allocations: 4.125 kB / 365 MB, free: 6.363 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001425/0.1279, allocations: 169.6 kB / 365.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/0.128, allocations: 65.41 kB / 365.2 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.815e-05/0.128, allocations: 29.7 kB / 365.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1281, allocations: 4 kB / 365.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1281, allocations: 3.938 kB / 365.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1281, allocations: 3.938 kB / 365.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.1283, allocations: 241.5 kB / 365.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1283, allocations: 4.062 kB / 365.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.1284, allocations: 12.05 kB / 365.5 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.1284, allocations: 3.984 kB / 365.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.1284, allocations: 4 kB / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.1284, allocations: 0 / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1284, allocations: 7.922 kB / 365.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.1287, allocations: 170.4 kB / 365.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.351e-05/0.1288, allocations: 108.9 kB / 365.8 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.1288, allocations: 4 kB / 365.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/0.1289, allocations: 8.047 kB / 365.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.129, allocations: 8 kB / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.129, allocations: 11.92 kB / 365.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002264/0.1292, allocations: 249.9 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1292, allocations: 0 / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002718/0.1295, allocations: 32 kB / 366.1 MB, free: 5.141 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0009846/0.1305, allocations: 433.1 kB / 366.5 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002345/0.1308, allocations: 71.89 kB / 366.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1308, allocations: 4 kB / 366.6 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.236e-05/0.1309, allocations: 24 kB / 366.6 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.1313, allocations: 62.59 kB / 366.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006806/0.132, allocations: 460.5 kB / 367.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.1323, allocations: 0.74 MB / 367.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.1323, allocations: 23.44 kB / 367.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1323, allocations: 0 / 367.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of Templates: time 0.005526/0.1379, allocations: 2.965 MB / 370.8 MB, free: 480 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches