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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 108 kB / 18.44 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 211.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 59.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2517, allocations: 50.55 MB / 409.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002698/0.2544, allocations: 1.616 MB / 411.5 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004481/0.2549, allocations: 175.6 kB / 411.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.368e-05/0.255, allocations: 3.938 kB / 411.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.2551, allocations: 11.88 kB / 411.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.2552, allocations: 15.92 kB / 411.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.2555, allocations: 47.83 kB / 411.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.2556, allocations: 71.66 kB / 411.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2557, allocations: 31.98 kB / 411.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.087e-05/0.2558, allocations: 35.84 kB / 411.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.407e-05/0.2559, allocations: 31.84 kB / 412 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.302e-05/0.2559, allocations: 8 kB / 412 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.509e-05/0.2559, allocations: 4 kB / 412 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.256, allocations: 23.92 kB / 412 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.557e-05/0.256, allocations: 43.67 kB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.2562, allocations: 87.64 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2562, allocations: 0 / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2562, allocations: 4 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2562, allocations: 0 / 412.1 MB, free: 15.43 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.0005029/0.2567, allocations: 408.1 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.2567, allocations: 11.97 kB / 412.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.2568, allocations: 24.73 kB / 412.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.257, allocations: 204.1 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.257, allocations: 4.375 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.257, allocations: 8.375 kB / 412.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.2574, allocations: 202.2 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2574, allocations: 8.125 kB / 413 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.2574, allocations: 11.88 kB / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2575, allocations: 0 / 413 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.2576, allocations: 59.95 kB / 413 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004024/0.258, allocations: 373.9 kB / 413.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.2582, allocations: 135.9 kB / 413.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2583, allocations: 74.55 kB / 413.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.2584, allocations: 0 / 413.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.2584, allocations: 38.5 kB / 413.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.2584, allocations: 0 / 413.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003669/0.2588, allocations: 169.3 kB / 413.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.2588, allocations: 110.8 kB / 413.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.259, allocations: 165.3 kB / 414.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.259, allocations: 25.7 kB / 414.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.291e-05/0.2591, allocations: 100.3 kB / 414.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.2591, allocations: 7.984 kB / 414.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.2591, allocations: 33.97 kB / 414.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2592, allocations: 322.8 kB / 414.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.29e-05/0.2593, allocations: 15.98 kB / 414.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.345e-05/0.2594, allocations: 85.38 kB / 414.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.2595, allocations: 117.3 kB / 414.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2595, allocations: 7.938 kB / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002022/0.2598, allocations: 129.3 kB / 414.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2598, allocations: 7.5 kB / 414.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2598, allocations: 4 kB / 414.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.2598, allocations: 4 kB / 414.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.2599, allocations: 19.98 kB / 415 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2599, allocations: 11.88 kB / 415 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.784e-05/0.26, allocations: 11.84 kB / 415 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.26, allocations: 8.312 kB / 415 MB, free: 12.22 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 9.804e-05/0.2601, allocations: 145.4 kB / 415.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.2603, allocations: 101.5 kB / 415.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.372e-05/0.2603, allocations: 20.7 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2603, allocations: 4 kB / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2604, allocations: 0 / 415.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.2604, allocations: 3.984 kB / 415.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.2606, allocations: 217.3 kB / 415.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2606, allocations: 0 / 415.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.2607, allocations: 23.98 kB / 415.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.2607, allocations: 4 kB / 415.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.395e-06/0.2608, allocations: 3.938 kB / 415.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2608, allocations: 0 / 415.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2608, allocations: 4 kB / 415.5 MB, free: 11.64 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: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.0003849/0.2612, allocations: 376.4 kB / 415.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.2612, allocations: 100.9 kB / 416 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.2613, allocations: 8 kB / 416 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.2614, allocations: 3.984 kB / 416 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.028e-05/0.2614, allocations: 11.94 kB / 416 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-06/0.2614, allocations: 4 kB / 416 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.247e-05/0.2615, allocations: 118.3 kB / 416.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2615, allocations: 0 / 416.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002938/0.2618, allocations: 16 kB / 416.1 MB, free: 10.98 MB / 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.0001153/0.2619, allocations: 107.2 kB / 416.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002249/0.2622, allocations: 84.06 kB / 416.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2622, allocations: 0 / 416.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.439e-05/0.2622, allocations: 15.92 kB / 416.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.2627, allocations: 76.19 kB / 416.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004517/0.2632, allocations: 266.4 kB / 416.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.2635, allocations: 0.7158 MB / 417.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.081e-05/0.2635, allocations: 15.44 kB / 417.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2635, allocations: 0 / 417.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of Templates: time 0.002519/0.266, allocations: 1.181 MB / 418.6 MB, free: 8.453 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches