Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002876/0.002876, allocations: 188 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.999/3.999, allocations: 205.4 MB / 222.6 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00193/0.001931, allocations: 94.81 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2076/0.2076, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.005373/0.005373, allocations: 13.47 kB / 392 MB, free: 54.85 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1715, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2): time 0.003555/0.1751, allocations: 1.293 MB / 443.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007501/0.1759, allocations: 167.5 kB / 443.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.1761, allocations: 0 / 443.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.021e-05/0.1762, allocations: 7.922 kB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.1764, allocations: 7.984 kB / 443.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.177, allocations: 43.89 kB / 443.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.1772, allocations: 27.97 kB / 443.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.1774, allocations: 40.31 kB / 443.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.33e-05/0.1775, allocations: 15.88 kB / 443.9 MB, free: 10 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.375e-05/0.1776, allocations: 31.83 kB / 444 MB, free: 9.973 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.1776, allocations: 4 kB / 444 MB, free: 9.969 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.184e-05/0.1776, allocations: 0 / 444 MB, free: 9.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.1777, allocations: 4 kB / 444 MB, free: 9.965 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.666e-05/0.1778, allocations: 37.64 kB / 444 MB, free: 9.922 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.1779, allocations: 51.89 kB / 444.1 MB, free: 9.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.178, allocations: 4 kB / 444.1 MB, free: 9.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.178, allocations: 4 kB / 444.1 MB, free: 9.863 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.178, allocations: 3.938 kB / 444.1 MB, free: 9.859 MB / 282.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.0006509/0.1787, allocations: 375.8 kB / 444.5 MB, free: 9.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.1788, allocations: 12.02 kB / 444.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.1789, allocations: 7.906 kB / 444.5 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1792, allocations: 186.9 kB / 444.7 MB, free: 9.203 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.1792, allocations: 7.953 kB / 444.7 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.1793, allocations: 8 kB / 444.7 MB, free: 9.188 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007475/0.18, allocations: 189.8 kB / 444.9 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.1801, allocations: 3.938 kB / 444.9 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.1802, allocations: 4 kB / 444.9 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1802, allocations: 7.938 kB / 444.9 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.1805, allocations: 35.98 kB / 444.9 MB, free: 8.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.1812, allocations: 373.8 kB / 445.3 MB, free: 8.512 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.1817, allocations: 115.8 kB / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.1818, allocations: 4.125 kB / 445.4 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.1818, allocations: 34.56 kB / 445.4 MB, free: 8.324 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 4.408e-06/0.1819, allocations: 0 / 445.4 MB, free: 8.324 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007568/0.1826, allocations: 137.4 kB / 445.6 MB, free: 8.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.385e-05/0.1828, allocations: 114.8 kB / 445.7 MB, free: 8.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.183, allocations: 134 kB / 445.8 MB, free: 7.906 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.1831, allocations: 29.7 kB / 445.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.302e-05/0.1832, allocations: 162.7 kB / 446 MB, free: 7.707 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.1832, allocations: 4 kB / 446 MB, free: 7.703 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.1832, allocations: 4.25 kB / 446 MB, free: 7.699 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.837e-05/0.1834, allocations: 326.8 kB / 446.3 MB, free: 7.371 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.1835, allocations: 8 kB / 446.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.1837, allocations: 81.44 kB / 446.4 MB, free: 7.25 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.1839, allocations: 32.3 kB / 446.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/0.1839, allocations: 0 / 446.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000454/0.1844, allocations: 113.4 kB / 446.5 MB, free: 7.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.1845, allocations: 8 kB / 446.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.1845, allocations: 7.875 kB / 446.6 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.401e-05/0.1845, allocations: 4 kB / 446.6 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.821e-05/0.1846, allocations: 12.33 kB / 446.6 MB, free: 7.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.1846, allocations: 8 kB / 446.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.1849, allocations: 7.938 kB / 446.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.185, allocations: 8 kB / 446.6 MB, free: 7.047 MB / 282.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 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002256/0.1852, allocations: 137.5 kB / 446.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.1857, allocations: 89.52 kB / 446.8 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.823e-05/0.1858, allocations: 8.719 kB / 446.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1859, allocations: 4 kB / 446.8 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.1859, allocations: 0 / 446.8 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.1859, allocations: 4 kB / 446.8 MB, free: 6.789 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006451/0.1866, allocations: 193.5 kB / 447 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.1866, allocations: 0 / 447 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.524e-05/0.1867, allocations: 8 kB / 447 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.19e-05/0.1867, allocations: 0 / 447 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.1868, allocations: 4 kB / 447 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.1868, allocations: 4 kB / 447 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.1868, allocations: 3.938 kB / 447 MB, free: 6.531 MB / 282.7 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.) xor.u2 sample2.y hold.y hold.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold.y hold.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) xor.u2 = sample2.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:7903:5-7903: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.0009275/0.1878, allocations: 367.8 kB / 447.4 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.1879, allocations: 100.9 kB / 447.5 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.1879, allocations: 4 kB / 447.5 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.1882, allocations: 8 kB / 447.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.1883, allocations: 3.984 kB / 447.5 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.1883, allocations: 7.938 kB / 447.5 MB, free: 6 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.1884, allocations: 105.1 kB / 447.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.854e-06/0.1885, allocations: 0 / 447.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007822/0.1892, allocations: 15.94 kB / 447.6 MB, free: 5.883 MB / 282.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 (step.y,hold.y,sample1.y,hold.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.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 0.0001942/0.1895, allocations: 105 kB / 447.7 MB, free: 5.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.19, allocations: 67.84 kB / 447.8 MB, free: 5.703 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/0.1901, allocations: 4 kB / 447.8 MB, free: 5.699 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.84e-05/0.1902, allocations: 8.094 kB / 447.8 MB, free: 5.691 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007153/0.1909, allocations: 68.39 kB / 447.9 MB, free: 5.629 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008648/0.1918, allocations: 252.6 kB / 448.1 MB, free: 5.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.1921, allocations: 0.7082 MB / 448.8 MB, free: 4.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.723e-05/0.1922, allocations: 11.44 kB / 448.9 MB, free: 4.605 MB / 282.7 MB Notification: Performance of SimCode: time 1.803e-06/0.1922, allocations: 0 / 448.9 MB, free: 4.605 MB / 282.7 MB Notification: Performance of Templates: time 0.007395/0.1997, allocations: 0.9553 MB / 449.8 MB, free: 3.652 MB / 282.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches