Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0008895/0.0008897, allocations: 170.9 kB / 16.8 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007641/0.0007641, allocations: 89.02 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08433/0.08433, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000445/0.000445, allocations: 16 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1052, allocations: 50.36 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3244/0.4296, allocations: 78.34 MB / 0.5097 GB, free: 13.4 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.43, allocations: 79.12 kB / 0.5098 GB, free: 13.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00323/0.4332, allocations: 1.419 MB / 0.5112 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.4332, allocations: 0 / 0.5112 GB, free: 12.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.265e-05/0.4333, allocations: 3.844 kB / 0.5112 GB, free: 12.72 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.0003833/0.4337, allocations: 375 kB / 0.5115 GB, free: 12.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.4337, allocations: 12.44 kB / 0.5115 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.309e-05/0.4338, allocations: 12.5 kB / 0.5116 GB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.434, allocations: 195.5 kB / 0.5117 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.434, allocations: 8.031 kB / 0.5117 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.434, allocations: 4.219 kB / 0.5118 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.4344, allocations: 183.1 kB / 0.5119 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.4344, allocations: 4.188 kB / 0.5119 GB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.4344, allocations: 11.5 kB / 0.5119 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.4344, allocations: 0 / 0.5119 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.238e-05/0.4345, allocations: 44.47 kB / 0.512 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003645/0.4349, allocations: 368 kB / 0.5123 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.435, allocations: 118.7 kB / 0.5124 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.622e-05/0.4351, allocations: 59.31 kB / 0.5125 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.4352, allocations: 4 kB / 0.5125 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.4352, allocations: 42.84 kB / 0.5125 GB, free: 11.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.723e-06/0.4352, allocations: 0 / 0.5125 GB, free: 11.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002822/0.4355, allocations: 125.7 kB / 0.5127 GB, free: 11.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.4355, allocations: 114.6 kB / 0.5128 GB, free: 11.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.836e-05/0.4356, allocations: 150.9 kB / 0.5129 GB, free: 11.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.4356, allocations: 25.7 kB / 0.5129 GB, free: 11.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.4357, allocations: 84.11 kB / 0.513 GB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/0.4357, allocations: 15.27 kB / 0.513 GB, free: 11.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.4357, allocations: 7.875 kB / 0.513 GB, free: 11.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.768e-05/0.4358, allocations: 318.4 kB / 0.5134 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.715e-05/0.4358, allocations: 15.33 kB / 0.5134 GB, free: 10.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.919e-05/0.4359, allocations: 84.2 kB / 0.5134 GB, free: 10.62 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.257e-05/0.436, allocations: 117.1 kB / 0.5136 GB, free: 10.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.436, allocations: 0 / 0.5136 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001422/0.4361, allocations: 115.7 kB / 0.5137 GB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.4361, allocations: 3.812 kB / 0.5137 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.4362, allocations: 4.281 kB / 0.5137 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.4362, allocations: 7.938 kB / 0.5137 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.559e-05/0.4362, allocations: 11.77 kB / 0.5137 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4362, allocations: 3.844 kB / 0.5137 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.857e-05/0.4363, allocations: 10.84 kB / 0.5137 GB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.4363, allocations: 3.812 kB / 0.5137 GB, free: 10.43 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 7.443e-05/0.4363, allocations: 133.4 kB / 0.5138 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.4365, allocations: 86.75 kB / 0.5139 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.4365, allocations: 23.2 kB / 0.5139 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.4365, allocations: 0 / 0.5139 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4365, allocations: 0 / 0.5139 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4365, allocations: 3.812 kB / 0.5139 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.4367, allocations: 184.9 kB / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4367, allocations: 0 / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.29e-05/0.4368, allocations: 3.875 kB / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4368, allocations: 0 / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.4368, allocations: 6.625 kB / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4368, allocations: 0 / 0.5141 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4368, allocations: 7.922 kB / 0.5141 GB, free: 10.04 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.0002986/0.4371, allocations: 344 kB / 0.5145 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.657e-05/0.4371, allocations: 100.3 kB / 0.5146 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.4372, allocations: 7.312 kB / 0.5146 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.4373, allocations: 3.906 kB / 0.5146 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.4373, allocations: 0 / 0.5146 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.4373, allocations: 7.984 kB / 0.5146 GB, free: 9.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.395e-05/0.4374, allocations: 105.9 kB / 0.5147 GB, free: 9.578 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4374, allocations: 0 / 0.5147 GB, free: 9.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00026/0.4377, allocations: 11.62 kB / 0.5147 GB, free: 9.578 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 8.212e-05/0.4377, allocations: 114 kB / 0.5148 GB, free: 9.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.4379, allocations: 66.22 kB / 0.5149 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4379, allocations: 3.719 kB / 0.5149 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.733e-05/0.4379, allocations: 7.719 kB / 0.5149 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.4384, allocations: 68.78 kB / 0.5149 GB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003406/0.4388, allocations: 222.7 kB / 0.5152 GB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.4389, allocations: 0.7036 MB / 0.5158 GB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.739e-05/0.439, allocations: 4.344 kB / 0.5158 GB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.737e-05/0.439, allocations: 18.83 kB / 0.5159 GB, free: 8.539 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.439, allocations: 3.625 kB / 0.5159 GB, free: 8.539 MB / 330.7 MB Notification: Performance of Templates: time 0.002561/0.4416, allocations: 0.6812 MB / 0.5165 GB, free: 8.207 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches