Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00207/0.002071, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 59.28 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1226, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003067/0.1257, allocations: 1.893 MB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1276, allocations: 1.27 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.158e-05/0.1277, allocations: 4 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002408/0.1279, allocations: 67.67 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003166/0.1282, allocations: 135.4 kB / 362.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.1288, allocations: 222.8 kB / 362.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.129, allocations: 175.6 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.1291, allocations: 41.52 kB / 362.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.931e-05/0.1292, allocations: 79.56 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1293, allocations: 83.67 kB / 362.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.908e-05/0.1294, allocations: 8 kB / 362.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1295, allocations: 63.97 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.441e-05/0.1296, allocations: 51.83 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.683e-05/0.1297, allocations: 79.42 kB / 363.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.1299, allocations: 239.2 kB / 363.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.13, allocations: 8 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.13, allocations: 3.938 kB / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.13, allocations: 0 / 363.3 MB, free: 8.902 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.0005923/0.1306, allocations: 0.5311 MB / 363.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.475e-05/0.1306, allocations: 11.97 kB / 363.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.1307, allocations: 24.66 kB / 363.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.131, allocations: 291.6 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.131, allocations: 8.312 kB / 364.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.131, allocations: 12.12 kB / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.1313, allocations: 155.6 kB / 364.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1314, allocations: 3.938 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1314, allocations: 11.94 kB / 364.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1314, allocations: 0 / 364.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.1315, allocations: 35.98 kB / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004404/0.132, allocations: 382.3 kB / 364.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.1322, allocations: 123.9 kB / 364.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.311e-05/0.1323, allocations: 42.56 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.1323, allocations: 4 kB / 364.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.1325, allocations: 83.31 kB / 365 MB, free: 6.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.943e-06/0.1325, allocations: 0 / 365 MB, free: 6.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003981/0.1329, allocations: 153.3 kB / 365.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.133, allocations: 162.2 kB / 365.3 MB, free: 6.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.1333, allocations: 338.9 kB / 365.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.1333, allocations: 29.7 kB / 365.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.1334, allocations: 128.1 kB / 365.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.1334, allocations: 11.81 kB / 365.8 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.1335, allocations: 33.7 kB / 365.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1336, allocations: 338.8 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.009e-05/0.1337, allocations: 23.94 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.963e-05/0.1338, allocations: 86.84 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.134, allocations: 84.47 kB / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.134, allocations: 4 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003504/0.1343, allocations: 133.2 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1344, allocations: 4 kB / 366.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1344, allocations: 4 kB / 366.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1344, allocations: 0 / 366.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.1345, allocations: 23.98 kB / 366.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.1346, allocations: 3.984 kB / 366.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1347, allocations: 7.938 kB / 366.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.1347, allocations: 8.125 kB / 366.5 MB, free: 5.309 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,subSample1.y,subSample1.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.0001913/0.1349, allocations: 163.3 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.135, allocations: 65.41 kB / 366.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.143e-05/0.1351, allocations: 29.7 kB / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1351, allocations: 0 / 366.8 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.1352, allocations: 4 kB / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1352, allocations: 3.938 kB / 366.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.1355, allocations: 241.5 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1355, allocations: 8 kB / 367 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.171e-05/0.1356, allocations: 12 kB / 367.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1356, allocations: 0 / 367.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.1356, allocations: 3.984 kB / 367.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/0.1356, allocations: 4 kB / 367.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1356, allocations: 3.938 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003717/0.136, allocations: 174.4 kB / 367.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.1362, allocations: 105 kB / 367.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.549e-05/0.1362, allocations: 4.047 kB / 367.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.399e-05/0.1363, allocations: 15.98 kB / 367.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.1364, allocations: 4 kB / 367.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.1364, allocations: 11.92 kB / 367.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002162/0.1366, allocations: 249.9 kB / 367.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1366, allocations: 0 / 367.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.1369, allocations: 31.98 kB / 367.6 MB, free: 4.094 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,subSample1.y,sample1.y,subSample1.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.0009151/0.1378, allocations: 424.3 kB / 368.1 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.138, allocations: 79.89 kB / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1381, allocations: 0 / 368.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.607e-05/0.1382, allocations: 32.11 kB / 368.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.1385, allocations: 64.45 kB / 368.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007043/0.1393, allocations: 373 kB / 368.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1396, allocations: 0.7436 MB / 369.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.778e-05/0.1397, allocations: 25.55 kB / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.1398, allocations: 27.42 kB / 369.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1398, allocations: 0 / 369.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of Templates: time 0.2026/0.3424, allocations: 2.816 MB / 372.2 MB, free: 19.82 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches