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/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/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.002625/0.002625, allocations: 177 kB / 17.46 MB, free: 4.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.933/2.933, allocations: 205.4 MB / 223.6 MB, free: 9.004 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.001211/0.001211, allocations: 85.94 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1487/0.1487, allocations: 12.21 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009813/0.0009816, allocations: 16 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1824, allocations: 50.29 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.592/0.7745, allocations: 78.31 MB / 0.5091 GB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004434/0.7751, allocations: 79.19 kB / 0.5092 GB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007263/0.7823, allocations: 1.971 MB / 0.5111 GB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.7824, allocations: 4 kB / 0.5111 GB, free: 12.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.7825, allocations: 0 / 0.5111 GB, free: 12.4 MB / 330.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.000551/0.783, allocations: 374.5 kB / 0.5115 GB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.7831, allocations: 7.688 kB / 0.5115 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.7832, allocations: 12.5 kB / 0.5115 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.7835, allocations: 200 kB / 0.5117 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.7836, allocations: 4.188 kB / 0.5117 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.7836, allocations: 8.156 kB / 0.5117 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005827/0.7842, allocations: 191.6 kB / 0.5119 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.7843, allocations: 4.172 kB / 0.5119 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.7843, allocations: 7.25 kB / 0.5119 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.7843, allocations: 3.844 kB / 0.5119 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.7845, allocations: 45.11 kB / 0.5119 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006434/0.7851, allocations: 373 kB / 0.5123 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.7854, allocations: 112.3 kB / 0.5124 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.7855, allocations: 67.55 kB / 0.5125 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.036e-05/0.7856, allocations: 3.844 kB / 0.5125 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.7856, allocations: 34.5 kB / 0.5125 GB, free: 11.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.904e-06/0.7857, allocations: 4 kB / 0.5125 GB, free: 11.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004994/0.7862, allocations: 127.5 kB / 0.5126 GB, free: 11.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.25e-05/0.7863, allocations: 114.6 kB / 0.5127 GB, free: 10.94 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.7864, allocations: 143.8 kB / 0.5129 GB, free: 10.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.7865, allocations: 29.69 kB / 0.5129 GB, free: 10.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.7865, allocations: 87.55 kB / 0.513 GB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.7866, allocations: 11.39 kB / 0.513 GB, free: 10.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.7866, allocations: 3.844 kB / 0.513 GB, free: 10.71 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.7867, allocations: 318.3 kB / 0.5133 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.922e-05/0.7867, allocations: 11.41 kB / 0.5133 GB, free: 10.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.7869, allocations: 93.58 kB / 0.5134 GB, free: 10.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.787, allocations: 109.8 kB / 0.5135 GB, free: 10.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.7871, allocations: 0 / 0.5135 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002985/0.7874, allocations: 121.3 kB / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.7874, allocations: 7.688 kB / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.7874, allocations: 0 / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/0.7875, allocations: 4.156 kB / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.692e-05/0.7875, allocations: 7.812 kB / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.7875, allocations: 3.875 kB / 0.5136 GB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.271e-05/0.7876, allocations: 13.05 kB / 0.5136 GB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.7877, allocations: 11.75 kB / 0.5137 GB, free: 10.11 MB / 330.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,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.0001271/0.7878, allocations: 137 kB / 0.5138 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.788, allocations: 83.16 kB / 0.5139 GB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.7881, allocations: 19.7 kB / 0.5139 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.7881, allocations: 0 / 0.5139 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.7881, allocations: 3.906 kB / 0.5139 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7881, allocations: 0 / 0.5139 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.7884, allocations: 187 kB / 0.5141 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.7884, allocations: 3.656 kB / 0.5141 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-05/0.7885, allocations: 7.609 kB / 0.5141 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.7885, allocations: 3.875 kB / 0.5141 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.7885, allocations: 0 / 0.5141 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.7885, allocations: 0 / 0.5141 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.7885, allocations: 7.812 kB / 0.5141 GB, free: 9.707 MB / 330.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: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.0005254/0.7891, allocations: 339.5 kB / 0.5144 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.584e-05/0.7892, allocations: 104.2 kB / 0.5145 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.7892, allocations: 2.875 kB / 0.5145 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.7894, allocations: 3.844 kB / 0.5145 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.7894, allocations: 4 kB / 0.5145 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.7895, allocations: 7.094 kB / 0.5145 GB, free: 9.336 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.434e-05/0.7895, allocations: 105.4 kB / 0.5146 GB, free: 9.254 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7896, allocations: 0 / 0.5146 GB, free: 9.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000457/0.79, allocations: 15.56 kB / 0.5146 GB, free: 9.254 MB / 330.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,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.0001386/0.7902, allocations: 94.75 kB / 0.5147 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002777/0.7905, allocations: 76.97 kB / 0.5148 GB, free: 9.145 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7905, allocations: 0 / 0.5148 GB, free: 9.145 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.044e-05/0.7905, allocations: 7.812 kB / 0.5148 GB, free: 9.145 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007707/0.7913, allocations: 62.38 kB / 0.5149 GB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000624/0.792, allocations: 264.2 kB / 0.5151 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.7922, allocations: 0.7 MB / 0.5158 GB, free: 8.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.7923, allocations: 11.28 kB / 0.5158 GB, free: 8.191 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.7923, allocations: 0 / 0.5158 GB, free: 8.191 MB / 330.7 MB Notification: Performance of Templates: time 0.003678/0.796, allocations: 0.9857 MB / 0.5168 GB, free: 7.695 MB / 330.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