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.002167/0.002167, allocations: 186.4 kB / 16.44 MB, free: 5.672 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.96/1.96, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.001132/0.001131, allocations: 91.55 kB / 270.9 MB, free: 8.363 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.1293/0.1293, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005245/0.0005244, allocations: 15.98 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1005, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4224/0.5229, allocations: 78.32 MB / 0.5085 GB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.5232, allocations: 85.14 kB / 0.5085 GB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004567/0.5278, allocations: 1.408 MB / 0.5099 GB, free: 12.21 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5279, allocations: 0 / 0.5099 GB, free: 12.21 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.5279, allocations: 0 / 0.5099 GB, free: 12.21 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.0003806/0.5283, allocations: 377.5 kB / 0.5103 GB, free: 11.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.5283, allocations: 11.66 kB / 0.5103 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.5284, allocations: 11.41 kB / 0.5103 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/0.5286, allocations: 181.3 kB / 0.5105 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.5286, allocations: 15.14 kB / 0.5105 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.5286, allocations: 11.8 kB / 0.5105 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004206/0.5291, allocations: 180.4 kB / 0.5107 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.5291, allocations: 0 / 0.5107 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.5291, allocations: 0 / 0.5107 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5291, allocations: 3.969 kB / 0.5107 GB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.5293, allocations: 46.14 kB / 0.5107 GB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004021/0.5297, allocations: 373.3 kB / 0.5111 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.5299, allocations: 107.8 kB / 0.5112 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.53, allocations: 7.859 kB / 0.5112 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.53, allocations: 45.73 kB / 0.5112 GB, free: 10.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.664e-06/0.53, allocations: 0 / 0.5112 GB, free: 10.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004142/0.5304, allocations: 136.9 kB / 0.5114 GB, free: 10.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.5305, allocations: 110.7 kB / 0.5115 GB, free: 10.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.5306, allocations: 132.2 kB / 0.5116 GB, free: 10.69 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.5307, allocations: 29.58 kB / 0.5116 GB, free: 10.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.5307, allocations: 154.8 kB / 0.5118 GB, free: 10.51 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.5307, allocations: 7.562 kB / 0.5118 GB, free: 10.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-06/0.5308, allocations: 8.062 kB / 0.5118 GB, free: 10.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.004e-05/0.5308, allocations: 322.7 kB / 0.5121 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.212e-05/0.5309, allocations: 11.12 kB / 0.5121 GB, free: 10.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.133e-05/0.531, allocations: 83.88 kB / 0.5122 GB, free: 10.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.233e-05/0.5311, allocations: 29.86 kB / 0.5122 GB, free: 10.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5311, allocations: 4 kB / 0.5122 GB, free: 10.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000236/0.5314, allocations: 111 kB / 0.5123 GB, free: 10.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.5314, allocations: 7.719 kB / 0.5123 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5314, allocations: 3.844 kB / 0.5123 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.5314, allocations: 4.188 kB / 0.5123 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.695e-05/0.5315, allocations: 11.86 kB / 0.5123 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.5315, allocations: 7.906 kB / 0.5123 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.633e-05/0.5316, allocations: 3.844 kB / 0.5124 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.5316, allocations: 7.719 kB / 0.5124 GB, free: 10 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 9.512e-05/0.5317, allocations: 130.3 kB / 0.5125 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.5319, allocations: 83 kB / 0.5126 GB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.518e-05/0.532, allocations: 19.55 kB / 0.5126 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.532, allocations: 3.844 kB / 0.5126 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.532, allocations: 4 kB / 0.5126 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.532, allocations: 480 / 0.5126 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.5323, allocations: 187.6 kB / 0.5128 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.5323, allocations: 0 / 0.5128 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.452e-05/0.5323, allocations: 7.812 kB / 0.5128 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.5323, allocations: 0 / 0.5128 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.5324, allocations: 7.688 kB / 0.5128 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5324, allocations: 3.969 kB / 0.5128 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5324, allocations: 0 / 0.5128 GB, free: 9.609 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:7906:5-7906: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.0004347/0.5328, allocations: 375.3 kB / 0.5131 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.129e-05/0.5329, allocations: 99.97 kB / 0.5132 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.5329, allocations: 7.781 kB / 0.5132 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.5331, allocations: 3.5 kB / 0.5133 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/0.5331, allocations: 7.828 kB / 0.5133 GB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.5331, allocations: 3.844 kB / 0.5133 GB, free: 9.191 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.065e-05/0.5332, allocations: 104.5 kB / 0.5134 GB, free: 9.113 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5332, allocations: 0 / 0.5134 GB, free: 9.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003655/0.5336, allocations: 10.91 kB / 0.5134 GB, free: 9.113 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.772e-05/0.5337, allocations: 107.5 kB / 0.5135 GB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.5339, allocations: 64.62 kB / 0.5135 GB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.534, allocations: 3.844 kB / 0.5135 GB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.183e-05/0.534, allocations: 12.34 kB / 0.5136 GB, free: 9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.5344, allocations: 53.95 kB / 0.5136 GB, free: 8.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004599/0.5349, allocations: 256.9 kB / 0.5138 GB, free: 8.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.5351, allocations: 0.7142 MB / 0.5145 GB, free: 8.055 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.5351, allocations: 11.31 kB / 0.5146 GB, free: 8.047 MB / 330.7 MB Notification: Performance of SimCode: time 9.01e-07/0.5351, allocations: 0 / 0.5146 GB, free: 8.047 MB / 330.7 MB Notification: Performance of Templates: time 0.002807/0.538, allocations: 0.9785 MB / 0.5155 GB, free: 7.555 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