Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001528, allocations: 195 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 226.6 MB / 244.7 MB, free: 8.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 99.52 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002575, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2447, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001371/0.2461, allocations: 1.308 MB / 409.4 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000315/0.2464, allocations: 170.1 kB / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.915e-05/0.2465, allocations: 0 / 409.5 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.911e-05/0.2466, allocations: 15.92 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.2467, allocations: 7.922 kB / 409.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001748/0.2469, allocations: 43.91 kB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.285e-05/0.247, allocations: 55.84 kB / 409.6 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.2471, allocations: 31.95 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.949e-05/0.2471, allocations: 27.84 kB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.187e-05/0.2472, allocations: 23.86 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.2472, allocations: 4.844 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.2472, allocations: 0 / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.143e-05/0.2473, allocations: 21.64 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.751e-05/0.2473, allocations: 61.44 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.63e-05/0.2474, allocations: 55.88 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2474, allocations: 0 / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.2474, allocations: 7.938 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.2474, allocations: 4.562 kB / 409.9 MB, free: 25.89 MB / 298.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.0003665/0.2478, allocations: 393.8 kB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.2478, allocations: 8.031 kB / 410.3 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.2478, allocations: 18 kB / 410.3 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.248, allocations: 201.1 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.248, allocations: 8.375 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.248, allocations: 10.83 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000344/0.2484, allocations: 219.4 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.2484, allocations: 192 / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.2484, allocations: 11.88 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2484, allocations: 4 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.2485, allocations: 51.97 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.2488, allocations: 389.8 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.249, allocations: 135.6 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.2491, allocations: 70.61 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.2491, allocations: 16.11 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.2492, allocations: 34.56 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.2492, allocations: 0 / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003154/0.2495, allocations: 169.6 kB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.2495, allocations: 110.8 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.883e-05/0.2496, allocations: 162.8 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.2496, allocations: 26.08 kB / 411.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.2497, allocations: 96.41 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.016e-05/0.2497, allocations: 8 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-06/0.2497, allocations: 0 / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.2497, allocations: 326.8 kB / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.655e-05/0.2498, allocations: 24.02 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.856e-05/0.2499, allocations: 88.55 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.25, allocations: 121.3 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.25, allocations: 3.938 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001656/0.2502, allocations: 133.3 kB / 412.7 MB, free: 22.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2502, allocations: 7.938 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.2502, allocations: 4 kB / 412.7 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2502, allocations: 4 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.809e-05/0.2503, allocations: 23.98 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2503, allocations: 7.938 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.289e-05/0.2504, allocations: 20.19 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.2504, allocations: 4 kB / 412.7 MB, free: 22.71 MB / 298.7 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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.905e-05/0.2505, allocations: 137.8 kB / 412.9 MB, free: 22.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2506, allocations: 101.5 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.2506, allocations: 20.7 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2506, allocations: 0 / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2506, allocations: 4 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2507, allocations: 0 / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.2508, allocations: 201.4 kB / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2508, allocations: 0 / 413.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.6e-05/0.2509, allocations: 27.92 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.251, allocations: 4 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.251, allocations: 4 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.251, allocations: 0 / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.251, allocations: 4 kB / 413.2 MB, free: 22.14 MB / 298.7 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7938:5-7938: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.0003004/0.2513, allocations: 384.3 kB / 413.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.737e-05/0.2513, allocations: 108.8 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.2514, allocations: 4 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2515, allocations: 4 kB / 413.7 MB, free: 21.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.734e-05/0.2515, allocations: 11.98 kB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.2515, allocations: 0 / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.301e-05/0.2516, allocations: 119.1 kB / 413.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2516, allocations: 96 / 413.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002581/0.2518, allocations: 15.94 kB / 413.9 MB, free: 21.47 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.055e-05/0.2519, allocations: 107.2 kB / 414 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.2521, allocations: 79.83 kB / 414 MB, free: 21.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2521, allocations: 4 kB / 414 MB, free: 21.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.544e-05/0.2521, allocations: 20.67 kB / 414.1 MB, free: 21.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.2526, allocations: 70.41 kB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.2529, allocations: 288.7 kB / 414.4 MB, free: 20.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.253, allocations: 0.7083 MB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.581e-05/0.253, allocations: 15.38 kB / 415.1 MB, free: 20.12 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2531, allocations: 0 / 415.1 MB, free: 20.12 MB / 298.7 MB Notification: Performance of Templates: time 0.001935/0.255, allocations: 1.159 MB / 416.3 MB, free: 18.96 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches