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.001452/0.001451, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001272/0.001272, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.451/1.451, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 51.36 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1266, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.003078/0.1298, allocations: 1.483 MB / 353 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004315/0.1302, allocations: 145 kB / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1303, allocations: 0 / 353.1 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.652e-05/0.1304, allocations: 7.938 kB / 353.1 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.1306, allocations: 11.92 kB / 353.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.1309, allocations: 27.91 kB / 353.2 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.131, allocations: 27.92 kB / 353.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1311, allocations: 12 kB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.46e-05/0.1312, allocations: 11.92 kB / 353.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.098e-05/0.1312, allocations: 15.92 kB / 353.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.1313, allocations: 4 kB / 353.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.151e-05/0.1313, allocations: 3.938 kB / 353.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.028e-05/0.1313, allocations: 15.98 kB / 353.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.1314, allocations: 19.81 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1315, allocations: 51.75 kB / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1316, allocations: 0 / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1316, allocations: 0 / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1316, allocations: 0 / 353.3 MB, free: 1.844 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.0005552/0.1321, allocations: 359.2 kB / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.1322, allocations: 12.03 kB / 353.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.1322, allocations: 16.84 kB / 353.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.1325, allocations: 184.2 kB / 353.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1325, allocations: 384 / 353.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.1325, allocations: 8.375 kB / 353.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.1328, allocations: 89.59 kB / 354 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1328, allocations: 192 / 354 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1328, allocations: 7.938 kB / 354 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1328, allocations: 0 / 354 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.995e-05/0.1329, allocations: 23.92 kB / 354 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002959/0.1332, allocations: 245.8 kB / 354.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.726e-05/0.1333, allocations: 53.09 kB / 354.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.26e-05/0.1334, allocations: 17.77 kB / 354.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.1334, allocations: 4 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.1334, allocations: 34.5 kB / 354.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1334, allocations: 0 / 354.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000237/0.1337, allocations: 69.73 kB / 354.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.1337, allocations: 81.14 kB / 354.5 MB, free: 456 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.1338, allocations: 134.1 kB / 354.6 MB, free: 308 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1339, allocations: 25.7 kB / 354.7 MB, free: 276 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.1339, allocations: 80.14 kB / 354.7 MB, free: 192 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.215e-05/0.1339, allocations: 7.906 kB / 354.8 MB, free: 184 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.134, allocations: 17.7 kB / 354.8 MB, free: 160 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1341, allocations: 318.8 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.685e-05/0.1342, allocations: 8 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.424e-05/0.1342, allocations: 21.64 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.291e-05/0.1343, allocations: 29.7 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1343, allocations: 0 / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001022/0.1344, allocations: 57.62 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1344, allocations: 8 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1344, allocations: 0 / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1344, allocations: 0 / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.706e-05/0.1345, allocations: 7.984 kB / 355.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1345, allocations: 0 / 355.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.642e-05/0.1345, allocations: 4 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.1346, allocations: 0 / 355.2 MB, free: 15.68 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 8.679e-05/0.1347, allocations: 117.8 kB / 355.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.1347, allocations: 49.53 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.1348, allocations: 7.875 kB / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1348, allocations: 0 / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1348, allocations: 0 / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1348, allocations: 3.938 kB / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.1349, allocations: 169.6 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.135, allocations: 4 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.582e-05/0.135, allocations: 7.984 kB / 355.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.135, allocations: 0 / 355.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.135, allocations: 8.031 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.135, allocations: 0 / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.135, allocations: 7.938 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001553/0.1352, allocations: 164.2 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.08e-05/0.1353, allocations: 89 kB / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.1353, allocations: 0 / 355.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.753e-05/0.1353, allocations: 8.031 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.757e-05/0.1354, allocations: 0 / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.1354, allocations: 0 / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.51e-05/0.1355, allocations: 114.1 kB / 355.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1355, allocations: 0 / 355.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.1357, allocations: 4 kB / 356 MB, free: 14.84 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 9.869e-05/0.1358, allocations: 103.7 kB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.1359, allocations: 19.98 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1359, allocations: 0 / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.311e-05/0.136, allocations: 11.92 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.1363, allocations: 15.97 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000298/0.1366, allocations: 146.3 kB / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1369, allocations: 0.6809 MB / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.846e-05/0.1369, allocations: 7.984 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.137, allocations: 11.44 kB / 356.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.137, allocations: 0 / 356.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Templates: time 0.002629/0.1396, allocations: 439.5 kB / 357.4 MB, free: 13.36 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 gbode -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