Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 106.9 kB / 17.74 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002381/0.002382, allocations: 180.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.691/1.691, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001317, allocations: 51.91 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2551, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002761/0.2579, allocations: 1.61 MB / 403 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004375/0.2583, allocations: 183.3 kB / 403.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.914e-05/0.2584, allocations: 4 kB / 403.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.2585, allocations: 11.86 kB / 403.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.2587, allocations: 15.88 kB / 403.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.2589, allocations: 43.88 kB / 403.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.259, allocations: 71.78 kB / 403.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.2592, allocations: 35.97 kB / 403.4 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.961e-05/0.2592, allocations: 27.86 kB / 403.4 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.784e-05/0.2593, allocations: 39.84 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.2593, allocations: 4 kB / 403.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.648e-05/0.2594, allocations: 8 kB / 403.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.799e-05/0.2594, allocations: 23.92 kB / 403.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.721e-05/0.2595, allocations: 43.67 kB / 403.5 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.2596, allocations: 95.56 kB / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2596, allocations: 0 / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2596, allocations: 0 / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2596, allocations: 0 / 403.6 MB, free: 6.695 MB / 318.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.0005268/0.2602, allocations: 416.1 kB / 404 MB, free: 6.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2602, allocations: 15.89 kB / 404 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.2603, allocations: 20.69 kB / 404 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.2605, allocations: 204 kB / 404.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.2605, allocations: 384 / 404.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.2605, allocations: 12.38 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.2609, allocations: 205.1 kB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2609, allocations: 4.172 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.2609, allocations: 3.938 kB / 404.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.261, allocations: 4 kB / 404.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.2611, allocations: 51.91 kB / 404.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.2615, allocations: 381.8 kB / 404.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.2617, allocations: 131.8 kB / 405 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.2618, allocations: 78.61 kB / 405.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.2619, allocations: 4 kB / 405.1 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.2619, allocations: 42.53 kB / 405.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.2619, allocations: 3.938 kB / 405.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003703/0.2623, allocations: 165.3 kB / 405.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.2624, allocations: 119 kB / 405.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.2625, allocations: 155.9 kB / 405.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.2625, allocations: 29.7 kB / 405.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.363e-05/0.2626, allocations: 88.42 kB / 405.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.2626, allocations: 19.83 kB / 405.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.2627, allocations: 33.7 kB / 405.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.2628, allocations: 315.2 kB / 406.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.576e-05/0.2628, allocations: 23.98 kB / 406.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.099e-05/0.2629, allocations: 85.42 kB / 406.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.2631, allocations: 113.3 kB / 406.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2631, allocations: 7.875 kB / 406.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001949/0.2633, allocations: 125.3 kB / 406.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2633, allocations: 8.344 kB / 406.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.2633, allocations: 8 kB / 406.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2633, allocations: 0 / 406.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.2634, allocations: 27.92 kB / 406.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.2635, allocations: 4 kB / 406.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.813e-05/0.2635, allocations: 15.83 kB / 406.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.2635, allocations: 4 kB / 406.5 MB, free: 3.484 MB / 318.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 9.641e-05/0.2636, allocations: 149.6 kB / 406.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.2638, allocations: 97.58 kB / 406.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.2639, allocations: 20.72 kB / 406.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.2639, allocations: 4 kB / 406.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2639, allocations: 0 / 406.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2639, allocations: 3.938 kB / 406.7 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.2641, allocations: 201.4 kB / 406.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2641, allocations: 0 / 406.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.2642, allocations: 27.97 kB / 407 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2642, allocations: 0 / 407 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.2643, allocations: 4 kB / 407 MB, free: 2.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2643, allocations: 4 kB / 407 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2643, allocations: 0 / 407 MB, free: 2.914 MB / 318.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:8011:5-8011: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.0004019/0.2647, allocations: 384.8 kB / 407.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.785e-05/0.2648, allocations: 104.9 kB / 407.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.2648, allocations: 4 kB / 407.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.2649, allocations: 7.938 kB / 407.5 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.2649, allocations: 0 / 407.5 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.2649, allocations: 4 kB / 407.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.618e-05/0.265, allocations: 126.1 kB / 407.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.265, allocations: 0 / 407.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.2653, allocations: 16 kB / 407.6 MB, free: 2.246 MB / 318.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 9.497e-05/0.2654, allocations: 110.8 kB / 407.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002132/0.2657, allocations: 84.14 kB / 407.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2657, allocations: 4.625 kB / 407.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.795e-05/0.2657, allocations: 12 kB / 407.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.2662, allocations: 75.81 kB / 407.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.2666, allocations: 261.6 kB / 408.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.2669, allocations: 0.7157 MB / 408.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.2669, allocations: 11.56 kB / 408.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2669, allocations: 4 kB / 408.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of Templates: time 0.002493/0.2694, allocations: 1.177 MB / 410 MB, free: 15.74 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches