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.001002/0.001002, allocations: 94.05 kB / 16.3 MB, free: 6 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.0009981/0.0009983, allocations: 185.3 kB / 17.2 MB, free: 5.91 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.506/1.506, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.000303, allocations: 7.344 kB / 300.7 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1168, allocations: 50.42 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002477/0.1194, allocations: 1.286 MB / 352.4 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005154/0.1199, allocations: 191.4 kB / 352.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1201, allocations: 0 / 352.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.1202, allocations: 7.938 kB / 352.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.1204, allocations: 15.91 kB / 352.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.1207, allocations: 46.41 kB / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.1208, allocations: 39.89 kB / 352.7 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.121, allocations: 40.36 kB / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.301e-05/0.1211, allocations: 19.86 kB / 352.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.1212, allocations: 27.86 kB / 352.8 MB, free: 10 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.1212, allocations: 4 kB / 352.8 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.679e-05/0.1212, allocations: 0 / 352.8 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.1213, allocations: 19.91 kB / 352.8 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.768e-05/0.1213, allocations: 41.64 kB / 352.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.134e-05/0.1214, allocations: 59.89 kB / 352.9 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1214, allocations: 0 / 352.9 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1214, allocations: 4 kB / 352.9 MB, free: 9.867 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1214, allocations: 0 / 352.9 MB, free: 9.867 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.0005742/0.122, allocations: 390.9 kB / 353.3 MB, free: 9.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1221, allocations: 8.031 kB / 353.3 MB, free: 9.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.151e-05/0.1221, allocations: 15.86 kB / 353.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.1223, allocations: 206.8 kB / 353.5 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.1223, allocations: 4 kB / 353.5 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.1224, allocations: 8 kB / 353.5 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004131/0.1228, allocations: 215.5 kB / 353.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1228, allocations: 0 / 353.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.1228, allocations: 7.938 kB / 353.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.1228, allocations: 4 kB / 353.8 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.123, allocations: 67.83 kB / 353.8 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004491/0.1234, allocations: 393.7 kB / 354.2 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.1237, allocations: 127.9 kB / 354.3 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1237, allocations: 0 / 354.3 MB, free: 8.258 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.1238, allocations: 42.58 kB / 354.4 MB, free: 8.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.122e-06/0.1238, allocations: 4 kB / 354.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004759/0.1242, allocations: 165.4 kB / 354.6 MB, free: 8.035 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.1244, allocations: 106.8 kB / 354.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.1245, allocations: 168.7 kB / 354.8 MB, free: 7.734 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1245, allocations: 29.95 kB / 354.9 MB, free: 7.699 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.988e-05/0.1246, allocations: 96.41 kB / 354.9 MB, free: 7.598 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.1246, allocations: 4 kB / 355 MB, free: 7.594 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.1247, allocations: 0 / 355 MB, free: 7.594 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1248, allocations: 322.8 kB / 355.3 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.765e-05/0.1249, allocations: 19.98 kB / 355.3 MB, free: 7.25 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.125, allocations: 89.38 kB / 355.4 MB, free: 7.129 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.845e-05/0.1251, allocations: 39.92 kB / 355.4 MB, free: 7.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1251, allocations: 0 / 355.4 MB, free: 7.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002407/0.1253, allocations: 133.4 kB / 355.5 MB, free: 6.953 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.1254, allocations: 11.95 kB / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1254, allocations: 0 / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.1254, allocations: 7.984 kB / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1255, allocations: 23.94 kB / 355.6 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1255, allocations: 4 kB / 355.6 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.925e-05/0.1256, allocations: 15.86 kB / 355.6 MB, free: 6.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1256, allocations: 8.25 kB / 355.6 MB, free: 6.883 MB / 286.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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.1258, allocations: 141.8 kB / 355.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.1259, allocations: 105.8 kB / 355.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.126, allocations: 20.67 kB / 355.9 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.126, allocations: 4 kB / 355.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.126, allocations: 0 / 355.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.126, allocations: 3.984 kB / 355.9 MB, free: 6.594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002566/0.1263, allocations: 189.5 kB / 356.1 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1263, allocations: 4 kB / 356.1 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.1264, allocations: 31.97 kB / 356.1 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1264, allocations: 0 / 356.1 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.1264, allocations: 0 / 356.1 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.1264, allocations: 7.953 kB / 356.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1264, allocations: 0 / 356.1 MB, free: 6.316 MB / 286.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7903:5-7903: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.0004359/0.1269, allocations: 399.8 kB / 356.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.159e-05/0.127, allocations: 116.7 kB / 356.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.127, allocations: 8 kB / 356.6 MB, free: 5.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1271, allocations: 12 kB / 356.6 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/0.1271, allocations: 0 / 356.6 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.1272, allocations: 7.984 kB / 356.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.511e-05/0.1273, allocations: 115.1 kB / 356.8 MB, free: 5.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1273, allocations: 0 / 356.8 MB, free: 5.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1275, allocations: 16 kB / 356.8 MB, free: 5.605 MB / 286.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 (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.0001484/0.1277, allocations: 111.2 kB / 356.9 MB, free: 5.488 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.1279, allocations: 79.83 kB / 357 MB, free: 5.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1279, allocations: 0 / 357 MB, free: 5.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.652e-05/0.128, allocations: 16.75 kB / 357 MB, free: 5.395 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.1284, allocations: 63.94 kB / 357 MB, free: 5.332 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.1288, allocations: 259.1 kB / 357.3 MB, free: 5.047 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1292, allocations: 0.7198 MB / 358 MB, free: 4.301 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.648e-05/0.1292, allocations: 16.34 kB / 358 MB, free: 4.285 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.928e-05/0.1293, allocations: 11.81 kB / 358 MB, free: 4.273 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1293, allocations: 0 / 358 MB, free: 4.273 MB / 286.1 MB Notification: Performance of Templates: time 0.003118/0.1324, allocations: 0.8169 MB / 358.9 MB, free: 3.465 MB / 286.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches