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.001514/0.001514, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.00156/0.00156, allocations: 165.7 kB / 24.27 MB, free: 172 kB / 18.57 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.63/1.63, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 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 1.623e-06/1.623e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.81e-05/2.973e-05, allocations: 2.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00406/0.00409, allocations: 1.641 MB / 274 MB, free: 180 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005889/0.004679, allocations: 175.3 kB / 274.1 MB, free: 4 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.004783, allocations: 7.984 kB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.004895, allocations: 7.875 kB / 274.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.005019, allocations: 23.81 kB / 274.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.005265, allocations: 43.83 kB / 274.2 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.005424, allocations: 75.75 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.005553, allocations: 19.98 kB / 274.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.522e-05/0.005628, allocations: 35.89 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.569e-05/0.005724, allocations: 27.91 kB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.00575, allocations: 4 kB / 274.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.517e-05/0.005775, allocations: 8 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/0.00584, allocations: 27.91 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.426e-05/0.005894, allocations: 23.92 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.006092, allocations: 91.56 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.006098, allocations: 8 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.006098, allocations: 0 / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.006102, allocations: 0 / 274.5 MB, free: 15.61 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.000681/0.006783, allocations: 337.8 kB / 274.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.006825, allocations: 8.031 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/0.006892, allocations: 16.89 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.007179, allocations: 157.5 kB / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.007189, allocations: 384 / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.007215, allocations: 12.38 kB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005654/0.007781, allocations: 202.3 kB / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.007788, allocations: 192 / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.007803, allocations: 8.375 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.007807, allocations: 384 / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.008001, allocations: 63.83 kB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.008531, allocations: 317.5 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.008829, allocations: 127.8 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.009009, allocations: 70.67 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.009039, allocations: 7.984 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.009083, allocations: 34.5 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.009084, allocations: 0 / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005796/0.009664, allocations: 173.4 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.009787, allocations: 115 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.01001, allocations: 163.3 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.01003, allocations: 25.7 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.01013, allocations: 96.41 kB / 276.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.01015, allocations: 7.938 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.0102, allocations: 21.72 kB / 276.4 MB, free: 13.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.01042, allocations: 322.8 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.458e-05/0.01046, allocations: 4 kB / 276.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.705e-05/0.01053, allocations: 21.7 kB / 276.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.01063, allocations: 33.7 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.01064, allocations: 0 / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001629/0.0108, allocations: 53.64 kB / 276.9 MB, free: 13.01 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.01082, allocations: 11.94 kB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.01082, allocations: 0 / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.01083, allocations: 0 / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.615e-05/0.0109, allocations: 11.92 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.01091, allocations: 4 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.273e-05/0.01095, allocations: 8.062 kB / 276.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.01095, allocations: 0 / 276.9 MB, free: 12.97 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 0.0001456/0.0111, allocations: 125.8 kB / 277 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.01138, allocations: 105.9 kB / 277.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.01144, allocations: 20.72 kB / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01144, allocations: 4 kB / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.01144, allocations: 0 / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.01145, allocations: 3.984 kB / 277.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003329/0.01178, allocations: 137.2 kB / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01179, allocations: 0 / 277.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.01194, allocations: 27.98 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.01194, allocations: 3.938 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.01195, allocations: 4 kB / 277.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.01196, allocations: 3.938 kB / 277.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01196, allocations: 0 / 277.3 MB, free: 12.5 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:7987:5-7987: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.0006482/0.01261, allocations: 380.4 kB / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.01268, allocations: 19.94 kB / 277.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.0127, allocations: 8 kB / 277.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.01289, allocations: 15.92 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.01291, allocations: 0 / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.01293, allocations: 4 kB / 277.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001363/0.01306, allocations: 117.7 kB / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01306, allocations: 0 / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004376/0.0135, allocations: 8 kB / 277.9 MB, free: 11.94 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 0.0001541/0.01366, allocations: 115.2 kB / 278 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.01387, allocations: 55.94 kB / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01387, allocations: 0 / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.149e-05/0.01393, allocations: 12 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.01463, allocations: 68.08 kB / 278.1 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/0.01526, allocations: 251.4 kB / 278.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.01541, allocations: 96.56 kB / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.399e-05/0.01544, allocations: 0 / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.473e-05/0.01548, allocations: 12.5 kB / 278.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01548, allocations: 0 / 278.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Templates: time 0.004806/0.02029, allocations: 0.9393 MB / 279.4 MB, free: 10.37 MB / 266.7 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/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_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: 4.447831501951441]