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.001185/0.001186, allocations: 97.72 kB / 16.3 MB, free: 5.559 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.001184/0.001184, allocations: 184.5 kB / 17.2 MB, free: 5.492 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.574/1.574, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002786, allocations: 7.938 kB / 300.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1211, allocations: 50.42 MB / 351.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00253/0.1237, allocations: 1.194 MB / 352.3 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004688/0.1242, allocations: 140.3 kB / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.746e-05/0.1243, allocations: 0 / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.695e-05/0.1244, allocations: 0 / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.1245, allocations: 11.98 kB / 352.5 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.1248, allocations: 31.84 kB / 352.5 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.916e-05/0.1249, allocations: 19.97 kB / 352.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.125, allocations: 15.94 kB / 352.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.125, allocations: 4 kB / 352.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.547e-05/0.1251, allocations: 11.92 kB / 352.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.1251, allocations: 0 / 352.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.333e-05/0.1251, allocations: 0 / 352.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.1252, allocations: 11.94 kB / 352.6 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.439e-05/0.1252, allocations: 29.7 kB / 352.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.033e-05/0.1253, allocations: 35.88 kB / 352.6 MB, free: 2.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1253, allocations: 0 / 352.6 MB, free: 2.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1253, allocations: 0 / 352.6 MB, free: 2.508 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1253, allocations: 4 kB / 352.6 MB, free: 2.504 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.0004475/0.1258, allocations: 351.4 kB / 353 MB, free: 2.113 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1258, allocations: 8.031 kB / 353 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.1258, allocations: 11.86 kB / 353 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.126, allocations: 190.4 kB / 353.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1261, allocations: 4 kB / 353.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.1261, allocations: 3.938 kB / 353.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.1263, allocations: 97.05 kB / 353.3 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1263, allocations: 0 / 353.3 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.1263, allocations: 0 / 353.3 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1263, allocations: 0 / 353.3 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.501e-05/0.1264, allocations: 23.88 kB / 353.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003593/0.1268, allocations: 257.8 kB / 353.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.748e-05/0.1269, allocations: 49.14 kB / 353.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.1269, allocations: 0 / 353.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.127, allocations: 38.56 kB / 353.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.127, allocations: 64 / 353.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002677/0.1272, allocations: 73.48 kB / 353.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/0.1273, allocations: 81.34 kB / 353.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.1275, allocations: 138.1 kB / 353.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1275, allocations: 25.7 kB / 354 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.1276, allocations: 84.14 kB / 354 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.005e-05/0.1276, allocations: 3.938 kB / 354.1 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-06/0.1276, allocations: 0 / 354.1 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1278, allocations: 318.8 kB / 354.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.801e-05/0.1278, allocations: 4 kB / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.481e-05/0.1279, allocations: 29.7 kB / 354.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.309e-05/0.1279, allocations: 11.94 kB / 354.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.128, allocations: 0 / 354.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000107/0.1281, allocations: 57.69 kB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.1281, allocations: 8.031 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1281, allocations: 0 / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.1282, allocations: 3.953 kB / 354.5 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.166e-05/0.1282, allocations: 11.98 kB / 354.5 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.1283, allocations: 0 / 354.5 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.727e-05/0.1283, allocations: 3.938 kB / 354.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1283, allocations: 4 kB / 354.5 MB, free: 408 kB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.1284, allocations: 121.8 kB / 354.6 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.1285, allocations: 41.61 kB / 354.7 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.1285, allocations: 7.875 kB / 354.7 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1286, allocations: 3.938 kB / 354.7 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1286, allocations: 7.953 kB / 354.7 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1286, allocations: 4 kB / 354.7 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.1288, allocations: 161.7 kB / 354.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1288, allocations: 0 / 354.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.1289, allocations: 4 kB / 354.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1289, allocations: 4 kB / 354.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1289, allocations: 4.031 kB / 354.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1289, allocations: 3.984 kB / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1289, allocations: 0 / 354.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1291, allocations: 174 kB / 355 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.615e-05/0.1292, allocations: 97.03 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.1292, allocations: 0 / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.316e-05/0.1293, allocations: 4 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.1293, allocations: 3.953 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1293, allocations: 3.984 kB / 355.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.116e-05/0.1294, allocations: 107.2 kB / 355.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1294, allocations: 0 / 355.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.1297, allocations: 4 kB / 355.2 MB, free: 15.54 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001467/0.1298, allocations: 99.25 kB / 355.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001694/0.13, allocations: 27.92 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.13, allocations: 0 / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.023e-05/0.1301, allocations: 11.98 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1304, allocations: 10.72 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/0.1307, allocations: 161.8 kB / 355.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.1311, allocations: 0.6887 MB / 356.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.326e-05/0.1311, allocations: 3.938 kB / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.117e-05/0.1312, allocations: 11.44 kB / 356.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1312, allocations: 4 kB / 356.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Templates: time 0.002929/0.1341, allocations: 382.5 kB / 356.6 MB, free: 14.1 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches