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.001664/0.001664, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002034/0.002034, allocations: 217.7 kB / 24.5 MB, free: 4.133 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.488/1.488, allocations: 230.5 MB / 258.1 MB, free: 8.039 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.002017/0.002017, allocations: 55.91 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2507, allocations: 53.41 MB / 432.4 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003098/0.2538, allocations: 1.636 MB / 434.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005299/0.2544, allocations: 195.3 kB / 434.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.2545, allocations: 0 / 434.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.2546, allocations: 15.8 kB / 434.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.2547, allocations: 11.94 kB / 434.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.2549, allocations: 59.75 kB / 434.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.2551, allocations: 59.84 kB / 434.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.2552, allocations: 31.98 kB / 434.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.191e-05/0.2553, allocations: 23.86 kB / 434.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.652e-05/0.2554, allocations: 43.77 kB / 434.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.165e-05/0.2554, allocations: 4 kB / 434.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.2554, allocations: 8 kB / 434.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.196e-05/0.2555, allocations: 23.92 kB / 434.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.506e-05/0.2555, allocations: 43.67 kB / 434.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.2557, allocations: 88.84 kB / 434.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2557, allocations: 0 / 434.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2557, allocations: 3.938 kB / 434.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2557, allocations: 0 / 434.7 MB, free: 4.559 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.0005817/0.2563, allocations: 349.7 kB / 435 MB, free: 4.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2563, allocations: 8.031 kB / 435 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.2563, allocations: 12.89 kB / 435 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.2566, allocations: 157.3 kB / 435.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.2566, allocations: 4.375 kB / 435.2 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.2566, allocations: 8.375 kB / 435.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/0.257, allocations: 208.5 kB / 435.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.257, allocations: 192 / 435.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.2571, allocations: 3.938 kB / 435.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.2571, allocations: 4 kB / 435.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.2572, allocations: 59.89 kB / 435.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.2577, allocations: 352.9 kB / 435.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.2579, allocations: 127.8 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.258, allocations: 74.66 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.258, allocations: 0 / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.2581, allocations: 42.44 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.885e-06/0.2581, allocations: 3.984 kB / 436.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004361/0.2585, allocations: 161.5 kB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.2586, allocations: 114.8 kB / 436.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.2588, allocations: 158.2 kB / 436.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.2588, allocations: 30.08 kB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.698e-05/0.2589, allocations: 96.41 kB / 436.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.2589, allocations: 7.938 kB / 436.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.2589, allocations: 33.7 kB / 436.6 MB, free: 2.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.2591, allocations: 331 kB / 437 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.596e-05/0.2591, allocations: 15.98 kB / 437 MB, free: 2.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2592, allocations: 81.44 kB / 437.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.2594, allocations: 121.2 kB / 437.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/0.2594, allocations: 7.938 kB / 437.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002132/0.2596, allocations: 125.6 kB / 437.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.2596, allocations: 7.938 kB / 437.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.2596, allocations: 4 kB / 437.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2597, allocations: 4 kB / 437.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.2598, allocations: 19.98 kB / 437.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2598, allocations: 4 kB / 437.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.003e-05/0.2599, allocations: 15.89 kB / 437.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.2599, allocations: 15.94 kB / 437.4 MB, free: 1.539 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.0001508/0.26, allocations: 144.7 kB / 437.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.2602, allocations: 101.6 kB / 437.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.2602, allocations: 20.7 kB / 437.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2603, allocations: 4 kB / 437.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2603, allocations: 0 / 437.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2603, allocations: 0 / 437.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.2605, allocations: 180.5 kB / 437.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2605, allocations: 0 / 437.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.2607, allocations: 23.98 kB / 437.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2607, allocations: 4 kB / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.2607, allocations: 0 / 437.8 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.2607, allocations: 4 kB / 437.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2607, allocations: 3.938 kB / 437.9 MB, free: 1.004 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:8030:5-8030: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.0004415/0.2611, allocations: 376.3 kB / 438.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.762e-05/0.2612, allocations: 27.89 kB / 438.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.2612, allocations: 3.938 kB / 438.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.2613, allocations: 8 kB / 438.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.2613, allocations: 0 / 438.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.2613, allocations: 7.984 kB / 438.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.024e-05/0.2614, allocations: 123.9 kB / 438.4 MB, free: 460 kB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2614, allocations: 4.031 kB / 438.4 MB, free: 456 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.2617, allocations: 15.94 kB / 438.4 MB, free: 440 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.0001343/0.2619, allocations: 99.25 kB / 438.5 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002426/0.2621, allocations: 88.33 kB / 438.6 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2621, allocations: 0 / 438.6 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.752e-05/0.2621, allocations: 8 kB / 438.6 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.2626, allocations: 70.61 kB / 438.7 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005105/0.2631, allocations: 273.5 kB / 438.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.2635, allocations: 0.7083 MB / 439.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.2635, allocations: 11.44 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2635, allocations: 0 / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.002995/0.2665, allocations: 1.18 MB / 440.8 MB, free: 13.93 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: 7.028910546796396]