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.001746/0.001746, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002254/0.002254, allocations: 215.5 kB / 24.48 MB, free: 3.836 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.429/1.429, allocations: 230.5 MB / 258.1 MB, free: 7.812 MB / 206.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.001916/0.001916, allocations: 63.89 kB / 379 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2533, allocations: 53.41 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003097/0.2564, allocations: 1.613 MB / 434 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004985/0.2569, allocations: 183.3 kB / 434.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.012e-05/0.257, allocations: 11.94 kB / 434.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.945e-05/0.2571, allocations: 11.86 kB / 434.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.2573, allocations: 11.92 kB / 434.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.2575, allocations: 59.2 kB / 434.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.2576, allocations: 67.83 kB / 434.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.2578, allocations: 23.64 kB / 434.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.272e-05/0.2578, allocations: 31.8 kB / 434.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.505e-05/0.2579, allocations: 43.77 kB / 434.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.2579, allocations: 4 kB / 434.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.258, allocations: 4 kB / 434.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.535e-05/0.258, allocations: 27.92 kB / 434.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.878e-05/0.2581, allocations: 27.81 kB / 434.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.2582, allocations: 90.53 kB / 434.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2582, allocations: 0 / 434.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2582, allocations: 0 / 434.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.2582, allocations: 0 / 434.6 MB, free: 4.336 MB / 334.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.00058/0.2588, allocations: 341.8 kB / 434.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.2588, allocations: 11.98 kB / 434.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.2589, allocations: 24.72 kB / 435 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.2591, allocations: 149.4 kB / 435.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.2591, allocations: 12.38 kB / 435.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.2591, allocations: 4.375 kB / 435.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.2596, allocations: 206.3 kB / 435.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.2596, allocations: 4.125 kB / 435.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.2596, allocations: 3.938 kB / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2596, allocations: 0 / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.2597, allocations: 63.95 kB / 435.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/0.2602, allocations: 317.5 kB / 435.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.2604, allocations: 123.9 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2605, allocations: 70.55 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.2605, allocations: 4 kB / 435.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.2606, allocations: 34.5 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.2606, allocations: 0 / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003999/0.261, allocations: 169.6 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.774e-05/0.261, allocations: 110.8 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.2612, allocations: 158.2 kB / 436.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.2612, allocations: 33.7 kB / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.2613, allocations: 92.42 kB / 436.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2613, allocations: 3.953 kB / 436.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.2614, allocations: 33.7 kB / 436.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2615, allocations: 323.2 kB / 436.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.481e-05/0.2616, allocations: 15.98 kB / 436.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.2617, allocations: 89.38 kB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.2618, allocations: 117.3 kB / 437 MB, free: 1.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2618, allocations: 11.94 kB / 437.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002165/0.2621, allocations: 129.3 kB / 437.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2621, allocations: 4 kB / 437.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2621, allocations: 4 kB / 437.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2621, allocations: 4.344 kB / 437.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.2622, allocations: 27.98 kB / 437.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.2622, allocations: 7.938 kB / 437.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.024e-05/0.2623, allocations: 11.89 kB / 437.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.2623, allocations: 8 kB / 437.3 MB, free: 1.367 MB / 334.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.0001173/0.2624, allocations: 129.8 kB / 437.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.2626, allocations: 105.5 kB / 437.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.2626, allocations: 24.7 kB / 437.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.2626, allocations: 3.984 kB / 437.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2627, allocations: 4 kB / 437.5 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2627, allocations: 4 kB / 437.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.2629, allocations: 137.2 kB / 437.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2629, allocations: 0 / 437.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.263, allocations: 31.92 kB / 437.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.263, allocations: 0 / 437.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.263, allocations: 4 kB / 437.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.263, allocations: 3.938 kB / 437.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.263, allocations: 0 / 437.7 MB, free: 0.8789 MB / 334.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:8018:5-8018: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.0004453/0.2634, allocations: 384.3 kB / 438.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.2635, allocations: 27.83 kB / 438.1 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.2635, allocations: 4 kB / 438.1 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.2636, allocations: 8 kB / 438.1 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.2637, allocations: 7.922 kB / 438.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-06/0.2637, allocations: 4 kB / 438.1 MB, free: 444 kB / 334.1 MB Notification: Performance of sorting global known variables: time 9.889e-05/0.2638, allocations: 123.9 kB / 438.2 MB, free: 320 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2638, allocations: 4 kB / 438.2 MB, free: 316 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.2641, allocations: 8 kB / 438.2 MB, free: 308 kB / 334.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.0001234/0.2642, allocations: 101.9 kB / 438.3 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.2644, allocations: 84.48 kB / 438.4 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2644, allocations: 8.062 kB / 438.4 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.228e-05/0.2645, allocations: 15.92 kB / 438.5 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.2649, allocations: 66.72 kB / 438.5 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004804/0.2654, allocations: 273.4 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.2655, allocations: 96.12 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.2655, allocations: 15.44 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2655, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of Templates: time 0.002818/0.2684, allocations: 1.194 MB / 440.1 MB, free: 14.4 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 -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: 6.941783950198442]