Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002677/0.002676, allocations: 175.8 kB / 8.194 MB, free: 2.152 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001316/0.001316, allocations: 94.91 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09641/0.09641, allocations: 12.59 MB / 322.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.626e-06/8.707e-06, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08725/0.08728, allocations: 50.37 MB / 428.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2855/0.3728, allocations: 77.49 MB / 0.4944 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/0.3731, allocations: 77.62 kB / 0.4944 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.004652/0.3778, allocations: 1.087 MB / 0.4955 GB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.3779, allocations: 3.812 kB / 0.4955 GB, free: 11.64 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.000355/0.3782, allocations: 358.6 kB / 0.4959 GB, free: 11.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3783, allocations: 7.812 kB / 0.4959 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.3783, allocations: 11.78 kB / 0.4959 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.3785, allocations: 186.1 kB / 0.496 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.3786, allocations: 9.125 kB / 0.4961 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.3786, allocations: 9.297 kB / 0.4961 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001405/0.3788, allocations: 35.06 kB / 0.4961 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003439/0.3791, allocations: 169.4 kB / 0.4963 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3791, allocations: 0.8438 kB / 0.4963 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3792, allocations: 0 / 0.4963 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.3792, allocations: 3.906 kB / 0.4963 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.3796, allocations: 343.9 kB / 0.4966 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.3798, allocations: 96.19 kB / 0.4967 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3799, allocations: 69.25 kB / 0.4968 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.3799, allocations: 0 / 0.4968 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.38, allocations: 39.64 kB / 0.4968 GB, free: 10.5 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.694e-06/0.38, allocations: 0 / 0.4968 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002827/0.3803, allocations: 90.3 kB / 0.4969 GB, free: 10.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3803, allocations: 106.9 kB / 0.497 GB, free: 10.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.3804, allocations: 138.8 kB / 0.4971 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.3805, allocations: 25.7 kB / 0.4971 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.723e-05/0.3805, allocations: 154.2 kB / 0.4973 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.3805, allocations: 4.688 kB / 0.4973 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.3806, allocations: 0 / 0.4973 GB, free: 10.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/0.3806, allocations: 319.8 kB / 0.4976 GB, free: 9.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.126e-05/0.3807, allocations: 7 kB / 0.4976 GB, free: 9.723 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.16e-05/0.3807, allocations: 84.97 kB / 0.4977 GB, free: 9.629 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.593e-05/0.3808, allocations: 26.17 kB / 0.4977 GB, free: 9.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3808, allocations: 0 / 0.4977 GB, free: 9.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001778/0.381, allocations: 88.48 kB / 0.4978 GB, free: 9.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.381, allocations: 9.047 kB / 0.4978 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.381, allocations: 0 / 0.4978 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3811, allocations: 3.812 kB / 0.4978 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.771e-05/0.3811, allocations: 9.109 kB / 0.4978 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.3811, allocations: 0 / 0.4978 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/0.3812, allocations: 9.312 kB / 0.4978 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.3812, allocations: 14.91 kB / 0.4978 GB, free: 9.566 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 () * 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 5.62e-05/0.3813, allocations: 35.06 kB / 0.4979 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.3815, allocations: 75.48 kB / 0.4979 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.495e-05/0.3816, allocations: 15.12 kB / 0.498 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.3816, allocations: 8.906 kB / 0.498 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3816, allocations: 0 / 0.498 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3816, allocations: 5.312 kB / 0.498 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.3818, allocations: 153.3 kB / 0.4981 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3819, allocations: 0 / 0.4981 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.165e-05/0.3819, allocations: 5.266 kB / 0.4981 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3819, allocations: 0 / 0.4981 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3819, allocations: 0 / 0.4981 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3819, allocations: 7.781 kB / 0.4981 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3819, allocations: 3.938 kB / 0.4981 GB, free: 9.316 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7187:5-7187: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 detectJacobianSparsePattern (simulation): time 0.0003682/0.3823, allocations: 346.5 kB / 0.4985 GB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/0.3824, allocations: 93.38 kB / 0.4985 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.3824, allocations: 3.875 kB / 0.4986 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.3826, allocations: 4.75 kB / 0.4986 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.3826, allocations: 7.297 kB / 0.4986 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.3827, allocations: 4.484 kB / 0.4986 GB, free: 8.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.752e-05/0.3827, allocations: 96.91 kB / 0.4987 GB, free: 8.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003418/0.3831, allocations: 15.62 kB / 0.4987 GB, free: 8.879 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 () * 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.668e-05/0.3832, allocations: 106.1 kB / 0.4988 GB, free: 8.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.3834, allocations: 50.09 kB / 0.4988 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3834, allocations: 0 / 0.4988 GB, free: 8.781 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.3834, allocations: 7.75 kB / 0.4988 GB, free: 8.777 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.3839, allocations: 51.02 kB / 0.4989 GB, free: 8.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003974/0.3843, allocations: 172 kB / 0.499 GB, free: 8.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.3845, allocations: 0.7203 MB / 0.4997 GB, free: 7.926 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.3845, allocations: 0 / 0.4997 GB, free: 7.926 MB / 330.7 MB Notification: Performance of Templates: time 0.002948/0.3875, allocations: 0.9849 MB / 0.5007 GB, free: 7.852 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/jenkins/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