Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008255/0.0008255, allocations: 95.95 kB / 16.05 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07689/0.07689, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001627/0.0001627, allocations: 4 kB / 40.28 MB, free: 0.6172 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.00541/0.005586, allocations: 2.824 MB / 43.1 MB, free: 6.07 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2): time 1.618/1.624, allocations: 277.6 MB / 320.7 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004189/1.624, allocations: 163.5 kB / 320.9 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.017e-05/1.625, allocations: 3.938 kB / 320.9 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.471e-05/1.625, allocations: 12.45 kB / 320.9 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/1.625, allocations: 12.5 kB / 320.9 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/1.625, allocations: 40.77 kB / 320.9 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/1.625, allocations: 67.62 kB / 321 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/1.625, allocations: 50.69 kB / 321 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.044e-05/1.625, allocations: 15.88 kB / 321.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.154e-05/1.625, allocations: 40.7 kB / 321.1 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/1.625, allocations: 3.938 kB / 321.1 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/1.625, allocations: 4 kB / 321.1 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.687e-05/1.625, allocations: 21.02 kB / 321.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.263e-05/1.626, allocations: 57.45 kB / 321.2 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001043/1.626, allocations: 79.62 kB / 321.3 MB, free: 10.07 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.626, allocations: 2.625 kB / 321.3 MB, free: 10.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/1.626, allocations: 0 / 321.3 MB, free: 10.07 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/1.626, allocations: 0 / 321.3 MB, free: 10.07 MB / 250.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.0005095/1.626, allocations: 396.6 kB / 321.7 MB, free: 9.629 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/1.626, allocations: 8.031 kB / 321.7 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.278e-05/1.626, allocations: 19.78 kB / 321.7 MB, free: 9.605 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/1.627, allocations: 204.1 kB / 321.9 MB, free: 9.367 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/1.627, allocations: 4.312 kB / 321.9 MB, free: 9.363 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/1.627, allocations: 12.38 kB / 321.9 MB, free: 9.352 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/1.627, allocations: 206.1 kB / 322.1 MB, free: 9.133 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/1.627, allocations: 192 / 322.1 MB, free: 9.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/1.627, allocations: 7.938 kB / 322.1 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/1.627, allocations: 0 / 322.1 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/1.627, allocations: 61.08 kB / 322.2 MB, free: 9.066 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004181/1.628, allocations: 388.7 kB / 322.5 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/1.628, allocations: 136.7 kB / 322.7 MB, free: 8.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/1.628, allocations: 80.39 kB / 322.8 MB, free: 8.387 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/1.628, allocations: 1.031 kB / 322.8 MB, free: 8.387 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/1.628, allocations: 40.44 kB / 322.8 MB, free: 8.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/1.628, allocations: 0 / 322.8 MB, free: 8.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003768/1.628, allocations: 167.2 kB / 323 MB, free: 8.172 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/1.628, allocations: 110.8 kB / 323.1 MB, free: 8.039 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/1.629, allocations: 165.7 kB / 323.2 MB, free: 7.871 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/1.629, allocations: 27.42 kB / 323.3 MB, free: 7.84 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.838e-05/1.629, allocations: 92.36 kB / 323.4 MB, free: 7.742 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/1.629, allocations: 15.89 kB / 323.4 MB, free: 7.727 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-06/1.629, allocations: 0 / 323.4 MB, free: 7.727 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/1.629, allocations: 321 kB / 323.7 MB, free: 7.406 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.441e-05/1.629, allocations: 23.92 kB / 323.7 MB, free: 7.383 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.171e-05/1.629, allocations: 87.36 kB / 323.8 MB, free: 7.266 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/1.629, allocations: 116 kB / 323.9 MB, free: 7.125 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/1.629, allocations: 5.219 kB / 323.9 MB, free: 7.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002005/1.629, allocations: 131.4 kB / 324 MB, free: 6.988 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/1.629, allocations: 8.875 kB / 324 MB, free: 6.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/1.629, allocations: 0 / 324 MB, free: 6.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/1.629, allocations: 5.219 kB / 324 MB, free: 6.977 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/1.629, allocations: 27.92 kB / 324.1 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/1.63, allocations: 4 kB / 324.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.652e-05/1.63, allocations: 20.61 kB / 324.1 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/1.63, allocations: 8.969 kB / 324.1 MB, free: 6.918 MB / 250.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,hold.u,hold.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.63, allocations: 143 kB / 324.2 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/1.63, allocations: 102 kB / 324.3 MB, free: 6.664 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/1.63, allocations: 16.72 kB / 324.4 MB, free: 6.645 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/1.63, allocations: 4.594 kB / 324.4 MB, free: 6.641 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.63, allocations: 4 kB / 324.4 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.63, allocations: 0 / 324.4 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/1.63, allocations: 193.5 kB / 324.6 MB, free: 6.398 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/1.63, allocations: 7.938 kB / 324.6 MB, free: 6.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/1.63, allocations: 23.92 kB / 324.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/1.63, allocations: 7.984 kB / 324.6 MB, free: 6.359 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-06/1.63, allocations: 4 kB / 324.6 MB, free: 6.355 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/1.63, allocations: 4 kB / 324.6 MB, free: 6.352 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/1.63, allocations: 0 / 324.6 MB, free: 6.352 MB / 250.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 hold.u hold.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(hold.y) hold.y = $getPart(hold.u) hold.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 hold.u hold.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(hold.y) hold.y = $getPart(hold.u) hold.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:7946:5-7946: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.0004137/1.631, allocations: 392.4 kB / 325 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.28e-05/1.631, allocations: 101 kB / 325.1 MB, free: 5.832 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/1.631, allocations: 0 / 325.1 MB, free: 5.832 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/1.631, allocations: 4 kB / 325.1 MB, free: 5.828 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/1.631, allocations: 7.984 kB / 325.1 MB, free: 5.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/1.631, allocations: 8 kB / 325.1 MB, free: 5.812 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.342e-05/1.631, allocations: 117.5 kB / 325.2 MB, free: 5.699 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.631, allocations: 0 / 325.2 MB, free: 5.699 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000262/1.631, allocations: 16 kB / 325.2 MB, free: 5.684 MB / 250.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,hold.y,sample1.y,hold.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.427e-05/1.632, allocations: 107.2 kB / 325.3 MB, free: 5.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002011/1.632, allocations: 87.77 kB / 325.4 MB, free: 5.484 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/1.632, allocations: 0.6875 kB / 325.4 MB, free: 5.484 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.012e-05/1.632, allocations: 19.94 kB / 325.5 MB, free: 5.465 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004409/1.632, allocations: 71.88 kB / 325.5 MB, free: 5.395 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/1.633, allocations: 275.4 kB / 325.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/1.633, allocations: 0.7121 MB / 326.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.091e-05/1.633, allocations: 4.562 kB / 326.5 MB, free: 4.352 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/1.633, allocations: 11.44 kB / 326.5 MB, free: 4.34 MB / 250.7 MB Notification: Performance of SimCode: time 3.41e-07/1.633, allocations: 7.938 kB / 326.5 MB, free: 4.332 MB / 250.7 MB Notification: Performance of Templates: time 0.002628/1.636, allocations: 0.8653 MB / 327.4 MB, free: 3.477 MB / 250.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches