Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, allocations: 77.62 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001689/0.001689, allocations: 158.8 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 177.1 MB / 204.7 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 66.67 kB / 325.5 MB, free: 200 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1058, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003207/0.1091, allocations: 1.627 MB / 380.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000503/0.1096, allocations: 187.3 kB / 380.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.681e-05/0.1096, allocations: 4 kB / 380.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.1097, allocations: 11.86 kB / 380.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1099, allocations: 11.88 kB / 380.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.1101, allocations: 51.83 kB / 380.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1102, allocations: 63.83 kB / 380.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1104, allocations: 31.92 kB / 380.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.1104, allocations: 27.86 kB / 380.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1105, allocations: 43.77 kB / 381 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.1105, allocations: 4 kB / 381 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.532e-05/0.1106, allocations: 4 kB / 381 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.43e-05/0.1106, allocations: 27.86 kB / 381 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.553e-05/0.1107, allocations: 31.8 kB / 381 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.1108, allocations: 87.58 kB / 381.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1108, allocations: 0 / 381.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1108, allocations: 0 / 381.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1108, allocations: 0 / 381.1 MB, free: 13.27 MB / 350.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.0005845/0.1114, allocations: 341.8 kB / 381.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1114, allocations: 8.031 kB / 381.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.1115, allocations: 20.83 kB / 381.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.1117, allocations: 148.3 kB / 381.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.1117, allocations: 4.375 kB / 381.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.1118, allocations: 8.375 kB / 381.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.1122, allocations: 212.8 kB / 381.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1122, allocations: 4.188 kB / 381.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.1122, allocations: 3.938 kB / 381.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1122, allocations: 0 / 381.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001383/0.1123, allocations: 55.91 kB / 381.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004415/0.1128, allocations: 329.4 kB / 382.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.113, allocations: 127.9 kB / 382.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.1131, allocations: 78.42 kB / 382.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1131, allocations: 4 kB / 382.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.1132, allocations: 38.5 kB / 382.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.123e-06/0.1132, allocations: 0 / 382.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003949/0.1136, allocations: 161.5 kB / 382.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.1137, allocations: 114.8 kB / 382.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.1138, allocations: 159.1 kB / 382.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1138, allocations: 33.7 kB / 382.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.1139, allocations: 88.67 kB / 383 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1139, allocations: 15.94 kB / 383 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.387e-05/0.114, allocations: 29.72 kB / 383.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1141, allocations: 322.8 kB / 383.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.656e-05/0.1142, allocations: 15.98 kB / 383.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.1143, allocations: 89.42 kB / 383.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.1145, allocations: 117.2 kB / 383.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1145, allocations: 4 kB / 383.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002282/0.1147, allocations: 129.4 kB / 383.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.1147, allocations: 4 kB / 383.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1147, allocations: 4 kB / 383.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1148, allocations: 7.938 kB / 383.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.1149, allocations: 23.92 kB / 383.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.1149, allocations: 4 kB / 383.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.091e-05/0.1149, allocations: 15.94 kB / 383.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.1149, allocations: 8 kB / 383.8 MB, free: 10.3 MB / 350.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.0001285/0.1151, allocations: 138 kB / 383.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.1153, allocations: 113.8 kB / 384 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.536e-05/0.1153, allocations: 16.78 kB / 384 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1153, allocations: 4 kB / 384 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1153, allocations: 0 / 384 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1153, allocations: 0 / 384 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.1155, allocations: 133.2 kB / 384.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1155, allocations: 0 / 384.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.1157, allocations: 31.92 kB / 384.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1157, allocations: 4 kB / 384.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.1157, allocations: 4 kB / 384.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1157, allocations: 3.984 kB / 384.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1157, allocations: 0 / 384.2 MB, free: 9.812 MB / 350.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:8032:5-8032: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.0004722/0.1162, allocations: 376.4 kB / 384.6 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.963e-05/0.1162, allocations: 35.77 kB / 384.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.1162, allocations: 4 kB / 384.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1163, allocations: 11.98 kB / 384.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.689e-05/0.1164, allocations: 0 / 384.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.1164, allocations: 8 kB / 384.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.597e-05/0.1165, allocations: 119.9 kB / 384.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1165, allocations: 0 / 384.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.1168, allocations: 12 kB / 384.8 MB, free: 9.238 MB / 350.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.0001109/0.1169, allocations: 111.2 kB / 384.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.1171, allocations: 79.84 kB / 385 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1171, allocations: 0 / 385 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.104e-05/0.1171, allocations: 11.98 kB / 385 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.1176, allocations: 68 kB / 385 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.1181, allocations: 243.7 kB / 385.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.1182, allocations: 104.7 kB / 385.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.283e-05/0.1182, allocations: 4.5 kB / 385.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.1182, allocations: 12.5 kB / 385.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1182, allocations: 0 / 385.4 MB, free: 8.559 MB / 350.1 MB Notification: Performance of Templates: time 0.003751/0.122, allocations: 1.023 MB / 386.4 MB, free: 7.551 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4183533060131595]