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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009435/0.0009435, allocations: 76.06 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 145.8 kB / 24.98 MB, free: 8.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9747/0.9747, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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=5011,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=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.842e-05/3.001e-05, allocations: 10.19 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002344/0.002374, allocations: 1.639 MB / 269.7 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004102/0.002785, allocations: 187.2 kB / 269.9 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.002873, allocations: 4 kB / 269.9 MB, free: 4.898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.002979, allocations: 11.86 kB / 269.9 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.003116, allocations: 23.8 kB / 269.9 MB, free: 4.863 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.003334, allocations: 43.83 kB / 270 MB, free: 4.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.003462, allocations: 71.77 kB / 270.1 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.003587, allocations: 27.91 kB / 270.1 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.624e-05/0.003643, allocations: 35.91 kB / 270.1 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.003729, allocations: 27.89 kB / 270.1 MB, free: 4.66 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.003757, allocations: 8 kB / 270.2 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.003769, allocations: 8 kB / 270.2 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.771e-05/0.003817, allocations: 23.92 kB / 270.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.003855, allocations: 23.92 kB / 270.2 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.003989, allocations: 67.73 kB / 270.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.003992, allocations: 0 / 270.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.003993, allocations: 0 / 270.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.003997, allocations: 0 / 270.3 MB, free: 4.531 MB / 250.7 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.0004572/0.004455, allocations: 444 kB / 270.7 MB, free: 4.059 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.0045, allocations: 12.03 kB / 270.7 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.004548, allocations: 12.89 kB / 270.7 MB, free: 4.035 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.004733, allocations: 172.1 kB / 270.9 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.004741, allocations: 384 / 270.9 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.004755, allocations: 12.36 kB / 270.9 MB, free: 3.828 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.00506, allocations: 181.1 kB / 271.1 MB, free: 3.621 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.005068, allocations: 4.172 kB / 271.1 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.005079, allocations: 4.375 kB / 271.1 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.005088, allocations: 384 / 271.1 MB, free: 3.613 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.027e-05/0.005139, allocations: 35.8 kB / 271.1 MB, free: 3.578 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003698/0.005508, allocations: 418.4 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.005635, allocations: 117.1 kB / 271.7 MB, free: 2.973 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.262e-05/0.005698, allocations: 55.36 kB / 271.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.005719, allocations: 7.938 kB / 271.7 MB, free: 2.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.005741, allocations: 33.39 kB / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.005742, allocations: 0 / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002337/0.005976, allocations: 117.6 kB / 271.9 MB, free: 2.734 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.006035, allocations: 110.8 kB / 272 MB, free: 2.602 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.00615, allocations: 220.9 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.006161, allocations: 25.7 kB / 272.2 MB, free: 2.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.431e-05/0.006225, allocations: 143.1 kB / 272.4 MB, free: 2.191 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.123e-05/0.006236, allocations: 3.953 kB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.19e-05/0.006268, allocations: 31.36 kB / 272.4 MB, free: 2.148 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.006381, allocations: 496.1 kB / 272.9 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.255e-05/0.006394, allocations: 4 kB / 272.9 MB, free: 1.648 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.916e-05/0.006413, allocations: 23.3 kB / 272.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.892e-05/0.006442, allocations: 31.5 kB / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.006444, allocations: 0 / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.334e-05/0.006497, allocations: 41.59 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.006514, allocations: 14.59 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.006519, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.006531, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.195e-05/0.006593, allocations: 7.984 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.006598, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.583e-05/0.006614, allocations: 4.062 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.006621, allocations: 8 kB / 273 MB, free: 1.5 MB / 250.7 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 (sample1.u,hold1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.516e-05/0.006696, allocations: 160.6 kB / 273.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/0.006786, allocations: 77.58 kB / 273.2 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.006827, allocations: 24.7 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.006828, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.006833, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.006837, allocations: 4 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.006986, allocations: 144.5 kB / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.006988, allocations: 4 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.949e-05/0.007058, allocations: 23.92 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.00706, allocations: 4 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.00707, allocations: 4 kB / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.007073, allocations: 3.938 kB / 273.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.007074, allocations: 0 / 273.4 MB, free: 1.004 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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:347:7-347: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:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020: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.0002933/0.007367, allocations: 447.5 kB / 273.9 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.007406, allocations: 27.89 kB / 273.9 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.007418, allocations: 0 / 273.9 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.314e-05/0.007481, allocations: 15.94 kB / 273.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.007515, allocations: 0 / 273.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.007521, allocations: 7.984 kB / 273.9 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.048e-05/0.007582, allocations: 147.2 kB / 274.1 MB, free: 356 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007582, allocations: 0 / 274.1 MB, free: 356 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001701/0.007752, allocations: 8 kB / 274.1 MB, free: 348 kB / 250.7 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 9.254e-05/0.007844, allocations: 111.2 kB / 274.2 MB, free: 228 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.178e-05/0.007936, allocations: 35.62 kB / 274.2 MB, free: 188 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.007938, allocations: 0 / 274.2 MB, free: 188 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.516e-05/0.007953, allocations: 15.67 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.008279, allocations: 46.77 kB / 274.3 MB, free: 124 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003535/0.008632, allocations: 238.3 kB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.414e-05/0.008687, allocations: 71.33 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.056e-05/0.008707, allocations: 7.938 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.008738, allocations: 12.5 kB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.008739, allocations: 4.25 kB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of Templates: time 0.003044/0.01178, allocations: 0.9348 MB / 275.6 MB, free: 14.81 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6859325780533254]