Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001219/0.001219, allocations: 192 kB / 18.63 MB, free: 4.375 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.537/1.537, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 51.08 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.142, allocations: 49.46 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003191/0.1452, allocations: 1.472 MB / 353 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003911/0.1457, allocations: 145 kB / 353.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.451e-05/0.1458, allocations: 4 kB / 353.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.034e-05/0.1458, allocations: 3.938 kB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.146, allocations: 11.92 kB / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.1462, allocations: 31.91 kB / 353.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.1464, allocations: 31.86 kB / 353.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.1465, allocations: 15.98 kB / 353.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.762e-05/0.1465, allocations: 15.92 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.533e-05/0.1466, allocations: 7.938 kB / 353.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.1466, allocations: 0 / 353.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.246e-05/0.1466, allocations: 4 kB / 353.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.151e-05/0.1467, allocations: 15.92 kB / 353.3 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.161e-05/0.1467, allocations: 19.88 kB / 353.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1468, allocations: 43.81 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1468, allocations: 0 / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1468, allocations: 0 / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1469, allocations: 0 / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005237/0.1474, allocations: 367.2 kB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1474, allocations: 8.031 kB / 353.7 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.523e-05/0.1475, allocations: 8.844 kB / 353.7 MB, free: 1.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.1477, allocations: 190.3 kB / 353.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1477, allocations: 8.375 kB / 353.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.1478, allocations: 384 / 353.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.148, allocations: 85.61 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.148, allocations: 4.125 kB / 354 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.148, allocations: 7.938 kB / 354 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.1481, allocations: 7.984 kB / 354 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.523e-05/0.1481, allocations: 12 kB / 354 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003152/0.1484, allocations: 257.8 kB / 354.3 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.016e-05/0.1485, allocations: 41.16 kB / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.825e-05/0.1486, allocations: 29.7 kB / 354.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.005e-05/0.1486, allocations: 4 kB / 354.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.1486, allocations: 30.56 kB / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1487, allocations: 0 / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002389/0.1489, allocations: 65.77 kB / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.149, allocations: 85.11 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.1491, allocations: 130.1 kB / 354.6 MB, free: 336 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.1491, allocations: 25.7 kB / 354.7 MB, free: 304 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.243e-05/0.1492, allocations: 88.14 kB / 354.8 MB, free: 212 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-06/0.1492, allocations: 3.906 kB / 354.8 MB, free: 208 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.216e-05/0.1492, allocations: 17.7 kB / 354.8 MB, free: 184 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1494, allocations: 314.8 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.467e-05/0.1494, allocations: 8 kB / 355.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.305e-05/0.1495, allocations: 21.7 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.501e-05/0.1496, allocations: 29.64 kB / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1496, allocations: 0 / 355.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001/0.1497, allocations: 61.62 kB / 355.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.1497, allocations: 4 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1497, allocations: 0 / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1497, allocations: 4 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.162e-05/0.1498, allocations: 7.984 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1498, allocations: 3.938 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.1498, allocations: 0 / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.1499, allocations: 7.984 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.000136/0.15, allocations: 121.8 kB / 355.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.1501, allocations: 41.59 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.107e-05/0.1501, allocations: 15.86 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1501, allocations: 0 / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.1502, allocations: 8 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1502, allocations: 0 / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1504, allocations: 165.6 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.1504, allocations: 0 / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.409e-05/0.1504, allocations: 7.938 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.1504, allocations: 0 / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.1504, allocations: 4 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1504, allocations: 4.031 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1505, allocations: 3.938 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.1506, allocations: 160.2 kB / 355.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.1507, allocations: 89 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.1507, allocations: 8 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.385e-05/0.1508, allocations: 4.031 kB / 355.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.1508, allocations: 0 / 355.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.1508, allocations: 4 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.134e-05/0.1509, allocations: 108.3 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1509, allocations: 3.938 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1511, allocations: 4 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.00012/0.1513, allocations: 95.78 kB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.1514, allocations: 23.98 kB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1514, allocations: 4 kB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.872e-05/0.1515, allocations: 4 kB / 356.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1518, allocations: 23.89 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003335/0.1521, allocations: 138.3 kB / 356.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.1525, allocations: 0.6848 MB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.589e-05/0.1525, allocations: 4 kB / 356.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.1525, allocations: 11.42 kB / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1526, allocations: 0 / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of Templates: time 0.002636/0.1552, allocations: 456.8 kB / 357.4 MB, free: 13.37 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches