Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 111.5 kB / 17.69 MB, free: 5.422 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.001814/0.001813, allocations: 192 kB / 18.63 MB, free: 4.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.451/1.451, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 50.58 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.122, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003026/0.125, allocations: 1.605 MB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004911/0.1255, allocations: 183.4 kB / 353.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.1256, allocations: 7.938 kB / 353.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.675e-05/0.1258, allocations: 7.875 kB / 353.3 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.1259, allocations: 11.92 kB / 353.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.1261, allocations: 51.83 kB / 353.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.1263, allocations: 63.77 kB / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1264, allocations: 39.98 kB / 353.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.809e-05/0.1265, allocations: 23.91 kB / 353.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1266, allocations: 43.78 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.1266, allocations: 4 kB / 353.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.1266, allocations: 8 kB / 353.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.1267, allocations: 23.92 kB / 353.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.355e-05/0.1267, allocations: 43.67 kB / 353.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.1269, allocations: 83.64 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1269, allocations: 4 kB / 353.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1269, allocations: 0 / 353.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1269, allocations: 0 / 353.7 MB, free: 1.508 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006274/0.1275, allocations: 414.8 kB / 354.1 MB, free: 1.051 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1276, allocations: 15.89 kB / 354.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.1277, allocations: 12.84 kB / 354.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.1279, allocations: 208.1 kB / 354.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1279, allocations: 8.375 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.1279, allocations: 4.375 kB / 354.3 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004143/0.1284, allocations: 221.6 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1284, allocations: 192 / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.1284, allocations: 3.938 kB / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1284, allocations: 0 / 354.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.1286, allocations: 55.95 kB / 354.6 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.129, allocations: 393.7 kB / 355 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.1293, allocations: 131.8 kB / 355.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.1294, allocations: 70.61 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.1294, allocations: 4 kB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.1295, allocations: 42.5 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.1295, allocations: 0 / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000417/0.1299, allocations: 165.4 kB / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.13, allocations: 106.8 kB / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1301, allocations: 171.7 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.1302, allocations: 25.7 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.78e-05/0.1302, allocations: 96.36 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.1303, allocations: 4 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.1303, allocations: 37.61 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1304, allocations: 322.8 kB / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.745e-05/0.1305, allocations: 19.98 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-05/0.1306, allocations: 89.38 kB / 356.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.1308, allocations: 117.3 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.1308, allocations: 3.938 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002066/0.131, allocations: 125.3 kB / 356.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.131, allocations: 4 kB / 356.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.131, allocations: 4 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1311, allocations: 4.344 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1312, allocations: 27.98 kB / 356.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1312, allocations: 3.938 kB / 356.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.826e-05/0.1313, allocations: 12 kB / 356.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.1313, allocations: 7.984 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001082/0.1314, allocations: 141.6 kB / 356.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.1316, allocations: 113.4 kB / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.666e-05/0.1316, allocations: 20.7 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1317, allocations: 8 kB / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1317, allocations: 0 / 356.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1317, allocations: 7.984 kB / 356.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1319, allocations: 193.5 kB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1319, allocations: 0 / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.1321, allocations: 31.86 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1321, allocations: 0 / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.1321, allocations: 4 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.1321, allocations: 4 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1321, allocations: 0 / 357.1 MB, free: 13.71 MB / 302.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004302/0.1325, allocations: 389.3 kB / 357.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.001e-05/0.1326, allocations: 97 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.1327, allocations: 4 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1328, allocations: 7.984 kB / 357.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.1328, allocations: 7.938 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.1328, allocations: 4 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.958e-05/0.1329, allocations: 115.1 kB / 357.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1329, allocations: 0 / 357.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.1332, allocations: 16 kB / 357.7 MB, free: 13.05 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: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0001136/0.1334, allocations: 119.1 kB / 357.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.1336, allocations: 79.78 kB / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1336, allocations: 0 / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.352e-05/0.1336, allocations: 20.61 kB / 357.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.1342, allocations: 68.06 kB / 358 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005898/0.1348, allocations: 248 kB / 358.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.1351, allocations: 0.7119 MB / 358.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.788e-05/0.1351, allocations: 4.562 kB / 358.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.1352, allocations: 19.38 kB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1352, allocations: 0 / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of Templates: time 0.003927/0.1391, allocations: 0.9379 MB / 359.9 MB, free: 10.79 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches