Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 213.1 kB / 24.48 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.641/1.641, allocations: 230.6 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 47.92 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.292, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.004824/0.2968, allocations: 1.624 MB / 433.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007597/0.2976, allocations: 191.3 kB / 434.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2977, allocations: 3.938 kB / 434.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.2978, allocations: 11.81 kB / 434.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.298, allocations: 19.86 kB / 434.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.2983, allocations: 51.89 kB / 434.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.2985, allocations: 59.83 kB / 434.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.2986, allocations: 31.97 kB / 434.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.072e-05/0.2987, allocations: 27.86 kB / 434.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.2988, allocations: 39.78 kB / 434.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.291e-05/0.2989, allocations: 4 kB / 434.4 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.319e-05/0.2989, allocations: 8 kB / 434.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.299, allocations: 23.92 kB / 434.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.356e-05/0.299, allocations: 39.72 kB / 434.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.2993, allocations: 85.27 kB / 434.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.2993, allocations: 4 kB / 434.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2993, allocations: 0 / 434.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2993, allocations: 3.938 kB / 434.5 MB, free: 4.508 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.0007965/0.3001, allocations: 337.8 kB / 434.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3001, allocations: 8.031 kB / 434.9 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.3002, allocations: 12.89 kB / 434.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.3005, allocations: 151.9 kB / 435 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.3006, allocations: 8.375 kB / 435 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.3006, allocations: 8.375 kB / 435.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007091/0.3013, allocations: 217.9 kB / 435.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3013, allocations: 192 / 435.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.347e-05/0.3013, allocations: 7.938 kB / 435.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3013, allocations: 4 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002508/0.3016, allocations: 55.89 kB / 435.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.3022, allocations: 321.6 kB / 435.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.3025, allocations: 119.7 kB / 435.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.3028, allocations: 74.48 kB / 435.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.3028, allocations: 8.125 kB / 435.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.51e-05/0.3028, allocations: 34.56 kB / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.783e-06/0.3028, allocations: 0 / 435.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006546/0.3035, allocations: 161.5 kB / 436 MB, free: 2.848 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3036, allocations: 111.1 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/0.3039, allocations: 169.8 kB / 436.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.3039, allocations: 29.7 kB / 436.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.304, allocations: 92.42 kB / 436.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.304, allocations: 7.938 kB / 436.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.056e-05/0.3041, allocations: 33.72 kB / 436.5 MB, free: 2.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.3043, allocations: 322.8 kB / 436.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-05/0.3044, allocations: 19.98 kB / 436.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.3046, allocations: 89.25 kB / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.3049, allocations: 121.3 kB / 437 MB, free: 1.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.3049, allocations: 0 / 437 MB, free: 1.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003844/0.3052, allocations: 129.3 kB / 437.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3053, allocations: 4 kB / 437.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3053, allocations: 4 kB / 437.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.3053, allocations: 4 kB / 437.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3055, allocations: 27.98 kB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3055, allocations: 4.281 kB / 437.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.3056, allocations: 19.89 kB / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.3056, allocations: 4 kB / 437.2 MB, free: 1.547 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.0001755/0.3058, allocations: 129.8 kB / 437.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.3061, allocations: 109.9 kB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.333e-05/0.3061, allocations: 20.7 kB / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3062, allocations: 0 / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.3062, allocations: 8 kB / 437.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.3062, allocations: 96 / 437.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004016/0.3066, allocations: 145.1 kB / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3066, allocations: 0 / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.3068, allocations: 27.86 kB / 437.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3068, allocations: 4 kB / 437.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3068, allocations: 0 / 437.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3068, allocations: 0 / 437.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.473e-06/0.3068, allocations: 4 kB / 437.6 MB, free: 1.059 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.0007696/0.3076, allocations: 385 kB / 438 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.3077, allocations: 31.83 kB / 438.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.3077, allocations: 0 / 438.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.308, allocations: 11.98 kB / 438.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.308, allocations: 0 / 438.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.308, allocations: 4 kB / 438.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001622/0.3082, allocations: 119.2 kB / 438.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3082, allocations: 0 / 438.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.3088, allocations: 16 kB / 438.2 MB, free: 496 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.0001423/0.3089, allocations: 99.25 kB / 438.3 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.3093, allocations: 79.83 kB / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.3093, allocations: 4 kB / 438.4 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.693e-05/0.3094, allocations: 12.61 kB / 438.4 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.3102, allocations: 66.77 kB / 438.5 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000844/0.311, allocations: 273.4 kB / 438.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.3112, allocations: 104.1 kB / 438.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.3113, allocations: 11.44 kB / 438.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3113, allocations: 0 / 438.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Templates: time 0.005177/0.3164, allocations: 1.203 MB / 440 MB, free: 14.58 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.167686760018114]