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.001257/0.001257, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.001479/0.001479, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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 0.9146/0.9146, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.893e-06/1.893e-06, allocations: 3.938 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.364e-05/2.554e-05, allocations: 5.266 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.005543/0.005568, allocations: 1.665 MB / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004258/0.005994, allocations: 191.2 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.113e-05/0.006075, allocations: 0 / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.006184, allocations: 7.875 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001411/0.006326, allocations: 23.78 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.006535, allocations: 51.83 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.006654, allocations: 63.77 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.006772, allocations: 31.91 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.253e-05/0.006825, allocations: 35.91 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.298e-05/0.006908, allocations: 35.89 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.00693, allocations: 4 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.494e-05/0.006945, allocations: 8 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.006993, allocations: 23.92 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.00703, allocations: 19.92 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.007157, allocations: 63.73 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.00716, allocations: 4 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007161, allocations: 3.938 kB / 275.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.007165, allocations: 0 / 275.1 MB, free: 15.23 MB / 266.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.00346/0.01062, allocations: 432.1 kB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.01067, allocations: 19.98 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.01071, allocations: 20.84 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.0109, allocations: 156.4 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.01091, allocations: 8.375 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.01092, allocations: 4.375 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.01125, allocations: 187.9 kB / 275.9 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.01126, allocations: 8.172 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.01127, allocations: 384 / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.01128, allocations: 4.375 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.079e-05/0.01133, allocations: 27.86 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003486/0.01168, allocations: 418.3 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.01208, allocations: 125 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.191e-05/0.01215, allocations: 59.3 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.01217, allocations: 4 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.0122, allocations: 41.39 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.0122, allocations: 4 kB / 276.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002482/0.01245, allocations: 109.4 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.01251, allocations: 110.8 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.01263, allocations: 211.3 kB / 277 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.01264, allocations: 25.7 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.099e-05/0.0127, allocations: 143.1 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.01272, allocations: 11.95 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.01275, allocations: 27.36 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.01287, allocations: 496.1 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.213e-05/0.01289, allocations: 8.188 kB / 277.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.966e-05/0.0129, allocations: 23.38 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.153e-05/0.01294, allocations: 23.36 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01294, allocations: 0 / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.619e-05/0.013, allocations: 49.59 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.01302, allocations: 7.938 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.01303, allocations: 0 / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.01304, allocations: 0 / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003069/0.01611, allocations: 8.125 kB / 277.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.01612, allocations: 7.984 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.021e-05/0.01614, allocations: 0 / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.01614, allocations: 0 / 277.9 MB, free: 12.21 MB / 266.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 8.614e-05/0.01623, allocations: 156.6 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.01635, allocations: 85.53 kB / 278.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.01639, allocations: 20.72 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.0164, allocations: 0 / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.0164, allocations: 7.938 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.01641, allocations: 3.984 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.0166, allocations: 148.5 kB / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.0166, allocations: 0 / 278.3 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.729e-05/0.01667, allocations: 27.92 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.01668, allocations: 4 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.01669, allocations: 0 / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.01669, allocations: 3.938 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.01669, allocations: 4 kB / 278.3 MB, free: 11.7 MB / 266.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.0003178/0.01701, allocations: 448.4 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.01706, allocations: 19.94 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.01707, allocations: 7.984 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.864e-05/0.01716, allocations: 7.938 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.01719, allocations: 0 / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-06/0.0172, allocations: 8 kB / 278.8 MB, free: 11.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.959e-05/0.01727, allocations: 152.8 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01727, allocations: 3.938 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.01753, allocations: 12 kB / 279 MB, free: 11.04 MB / 266.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 8.995e-05/0.01762, allocations: 99.25 kB / 279 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.01772, allocations: 35.61 kB / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01772, allocations: 0 / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.01774, allocations: 11.69 kB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.01815, allocations: 50.75 kB / 279.1 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003763/0.01853, allocations: 238.7 kB / 279.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.423e-05/0.01859, allocations: 75.52 kB / 279.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.009e-05/0.01861, allocations: 11.98 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.01864, allocations: 12.5 kB / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01864, allocations: 0 / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of Templates: time 0.002745/0.02139, allocations: 0.9302 MB / 280.4 MB, free: 9.523 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] 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","",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.681481354404241]