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.001585/0.001585, allocations: 181 kB / 15.8 MB, free: 6.34 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.704/1.704, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008862/0.0008866, allocations: 94.86 kB / 270.3 MB, free: 13.35 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.08539/0.08539, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004024, allocations: 10.22 kB / 392 MB, free: 54.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 50.37 MB / 442.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.228, allocations: 78.32 MB / 0.5085 GB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.2284, allocations: 79.95 kB / 0.5086 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004115/0.2326, allocations: 1.415 MB / 0.5099 GB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2326, allocations: 0 / 0.5099 GB, free: 10.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2326, allocations: 0 / 0.5099 GB, free: 10.99 MB / 362.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.0005007/0.2331, allocations: 373.9 kB / 0.5103 GB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.2332, allocations: 15.97 kB / 0.5103 GB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.682e-05/0.2332, allocations: 7.906 kB / 0.5103 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.2335, allocations: 190.9 kB / 0.5105 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.2336, allocations: 4 kB / 0.5105 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.2336, allocations: 11.95 kB / 0.5105 GB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.2341, allocations: 184.6 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2341, allocations: 4 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.2341, allocations: 4 kB / 0.5107 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.2341, allocations: 7.969 kB / 0.5107 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.2342, allocations: 39.98 kB / 0.5107 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004954/0.2347, allocations: 373.8 kB / 0.5111 GB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.2349, allocations: 111.6 kB / 0.5112 GB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.235, allocations: 8.109 kB / 0.5112 GB, free: 9.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.235, allocations: 38.69 kB / 0.5113 GB, free: 9.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.235, allocations: 0 / 0.5113 GB, free: 9.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003427/0.2354, allocations: 129.5 kB / 0.5114 GB, free: 9.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.2355, allocations: 114.8 kB / 0.5115 GB, free: 9.176 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2356, allocations: 129.1 kB / 0.5116 GB, free: 9.039 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.2356, allocations: 25.95 kB / 0.5116 GB, free: 9.008 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.2357, allocations: 88.42 kB / 0.5117 GB, free: 8.914 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.2357, allocations: 15.89 kB / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.2357, allocations: 0 / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2359, allocations: 322.8 kB / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.232e-05/0.2359, allocations: 16 kB / 0.5121 GB, free: 8.559 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.623e-05/0.236, allocations: 81.44 kB / 0.5121 GB, free: 8.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.957e-05/0.2361, allocations: 33.33 kB / 0.5122 GB, free: 8.414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2361, allocations: 3.938 kB / 0.5122 GB, free: 8.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001887/0.2363, allocations: 113.8 kB / 0.5123 GB, free: 8.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2363, allocations: 8.344 kB / 0.5123 GB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2363, allocations: 4 kB / 0.5123 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2364, allocations: 4 kB / 0.5123 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.876e-05/0.2364, allocations: 7.938 kB / 0.5123 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.2364, allocations: 11.92 kB / 0.5123 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.093e-05/0.2364, allocations: 4 kB / 0.5123 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.2365, allocations: 8 kB / 0.5123 GB, free: 8.246 MB / 362.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.0001221/0.2366, allocations: 133.6 kB / 0.5125 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.2367, allocations: 85.44 kB / 0.5125 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.2368, allocations: 20.7 kB / 0.5126 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2368, allocations: 4 kB / 0.5126 GB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.2368, allocations: 4 kB / 0.5126 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2368, allocations: 0 / 0.5126 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002586/0.2371, allocations: 185.6 kB / 0.5127 GB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2371, allocations: 4 kB / 0.5127 GB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.558e-05/0.2371, allocations: 3.938 kB / 0.5127 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.2371, allocations: 4 kB / 0.5128 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.2372, allocations: 0 / 0.5128 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2372, allocations: 0 / 0.5128 GB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.2372, allocations: 8 kB / 0.5128 GB, free: 7.734 MB / 362.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.) 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/jenkins/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/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: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.000449/0.2376, allocations: 367.8 kB / 0.5131 GB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.2377, allocations: 93 kB / 0.5132 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.2377, allocations: 4 kB / 0.5132 GB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.2378, allocations: 0 / 0.5132 GB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.2379, allocations: 7.938 kB / 0.5132 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.2379, allocations: 4 kB / 0.5132 GB, free: 7.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.814e-05/0.238, allocations: 109.1 kB / 0.5133 GB, free: 7.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.238, allocations: 4 kB / 0.5133 GB, free: 7.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000258/0.2382, allocations: 12 kB / 0.5133 GB, free: 7.098 MB / 362.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 9.398e-05/0.2383, allocations: 95.25 kB / 0.5134 GB, free: 6.996 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.2385, allocations: 68.69 kB / 0.5135 GB, free: 6.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2385, allocations: 4 kB / 0.5135 GB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.287e-05/0.2386, allocations: 12 kB / 0.5135 GB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.2389, allocations: 67.64 kB / 0.5136 GB, free: 6.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.2393, allocations: 231.6 kB / 0.5138 GB, free: 6.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.2397, allocations: 0.7085 MB / 0.5145 GB, free: 5.859 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.013e-05/0.2397, allocations: 448 / 0.5145 GB, free: 5.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.2398, allocations: 15.38 kB / 0.5145 GB, free: 5.844 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2398, allocations: 0 / 0.5145 GB, free: 5.844 MB / 362.7 MB Notification: Performance of Templates: time 0.0028/0.2426, allocations: 0.6825 MB / 0.5152 GB, free: 5.164 MB / 362.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/jenkins/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