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.001581/0.001581, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001883/0.001883, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.502/1.502, allocations: 177 MB / 204.1 MB, free: 9.164 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 1.954e-06/1.954e-06, allocations: 0 / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.928e-05, allocations: 2.281 kB / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004718/0.004747, allocations: 1.621 MB / 326.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007895/0.005536, allocations: 181.5 kB / 326.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.005666, allocations: 2.656 kB / 326.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.005804, allocations: 11.8 kB / 326.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.005987, allocations: 20.62 kB / 326.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.006356, allocations: 51.69 kB / 326.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.006544, allocations: 63.3 kB / 327 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.006719, allocations: 29.33 kB / 327 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.072e-05/0.00681, allocations: 42.28 kB / 327 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.00693, allocations: 31.23 kB / 327.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.006965, allocations: 5.75 kB / 327.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.547e-05/0.006991, allocations: 5.5 kB / 327.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.522e-05/0.007066, allocations: 23.95 kB / 327.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.592e-05/0.007132, allocations: 23.06 kB / 327.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.007385, allocations: 86.72 kB / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.007389, allocations: 0 / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.00739, allocations: 0 / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.0074, allocations: 3.656 kB / 327.2 MB, free: 15.1 MB / 302.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.0009794/0.00838, allocations: 331.8 kB / 327.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/0.00844, allocations: 17.58 kB / 327.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.412e-05/0.008524, allocations: 14.42 kB / 327.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004361/0.00896, allocations: 160.4 kB / 327.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.008981, allocations: 3.438 kB / 327.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.00901, allocations: 9.188 kB / 327.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.009729, allocations: 213.8 kB / 327.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.009746, allocations: 8.062 kB / 327.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.009764, allocations: 1.5 kB / 327.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.009772, allocations: 2.344 kB / 327.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.009994, allocations: 59.59 kB / 328 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006252/0.01062, allocations: 322.8 kB / 328.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.01093, allocations: 123.9 kB / 328.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.01115, allocations: 69.73 kB / 328.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.01118, allocations: 7.453 kB / 328.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.946e-05/0.01123, allocations: 37.86 kB / 328.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.914e-06/0.01124, allocations: 0 / 328.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006807/0.01192, allocations: 167.2 kB / 328.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.01208, allocations: 111.9 kB / 328.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.01237, allocations: 172 kB / 329 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.0124, allocations: 25.7 kB / 329 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.01252, allocations: 94.28 kB / 329.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.01254, allocations: 5.203 kB / 329.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.316e-05/0.01261, allocations: 26.33 kB / 329.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.01284, allocations: 323.2 kB / 329.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.104e-05/0.0129, allocations: 7.25 kB / 329.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.547e-05/0.01296, allocations: 17.45 kB / 329.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.01309, allocations: 31.75 kB / 329.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.0131, allocations: 0.9375 kB / 329.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002087/0.01331, allocations: 59.31 kB / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.01333, allocations: 9.344 kB / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.01334, allocations: 1.609 kB / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.01336, allocations: 1 kB / 329.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.667e-05/0.01345, allocations: 13.66 kB / 329.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.01346, allocations: 0.5625 kB / 329.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.647e-05/0.01352, allocations: 2.922 kB / 329.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.01353, allocations: 1.156 kB / 329.6 MB, free: 13.06 MB / 302.1 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 0.0001731/0.0137, allocations: 126 kB / 329.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.01402, allocations: 104.4 kB / 329.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.0141, allocations: 23.23 kB / 329.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.0141, allocations: 1.219 kB / 329.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.01411, allocations: 5.625 kB / 329.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.01412, allocations: 1.875 kB / 329.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.01452, allocations: 135.3 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.01453, allocations: 2 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.01471, allocations: 20.89 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.01472, allocations: 3.312 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.01473, allocations: 1.312 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.377e-06/0.01474, allocations: 5.094 kB / 330 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.01475, allocations: 6.125 kB / 330 MB, free: 12.71 MB / 302.1 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:7979:5-7979: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.0008184/0.01557, allocations: 393.8 kB / 330.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.01568, allocations: 20.41 kB / 330.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.01572, allocations: 2.859 kB / 330.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.016, allocations: 13.23 kB / 330.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.633e-05/0.01605, allocations: 2.641 kB / 330.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.01606, allocations: 7.25 kB / 330.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001929/0.01625, allocations: 118.2 kB / 330.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.01625, allocations: 3.938 kB / 330.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005438/0.0168, allocations: 8.625 kB / 330.6 MB, free: 12.34 MB / 302.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.0001892/0.01699, allocations: 106 kB / 330.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.01726, allocations: 49.19 kB / 330.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.01726, allocations: 4.125 kB / 330.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.969e-05/0.01733, allocations: 14.31 kB / 330.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008546/0.01818, allocations: 67.08 kB / 330.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007949/0.01898, allocations: 242.5 kB / 331.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.01918, allocations: 96.84 kB / 331.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.501e-05/0.01922, allocations: 3.375 kB / 331.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.01928, allocations: 12.53 kB / 331.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.01928, allocations: 4 kB / 331.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Templates: time 0.006115/0.0254, allocations: 0.9058 MB / 332.1 MB, free: 11.6 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/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.442829895764589]