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.0009674/0.0009674, allocations: 176.7 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.3 MB / 213.8 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008199/0.0008198, allocations: 90.16 kB / 261.8 MB, free: 1.613 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.07374/0.07374, allocations: 12.59 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.437e-05/1.439e-05, allocations: 4 kB / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2505, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.3511, allocations: 77.57 MB / 0.495 GB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3514, allocations: 75.95 kB / 0.4951 GB, free: 4.602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003352/0.3547, allocations: 1.404 MB / 0.4964 GB, free: 3.199 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3547, allocations: 0 / 0.4964 GB, free: 3.199 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.3548, allocations: 0 / 0.4964 GB, free: 3.199 MB / 346.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.0003397/0.3551, allocations: 362.3 kB / 0.4968 GB, free: 2.801 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3551, allocations: 8.031 kB / 0.4968 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.3552, allocations: 11.91 kB / 0.4968 GB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.3554, allocations: 185 kB / 0.497 GB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.3554, allocations: 4 kB / 0.497 GB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.3554, allocations: 15.94 kB / 0.497 GB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001168/0.3556, allocations: 39.92 kB / 0.497 GB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.3559, allocations: 153.8 kB / 0.4972 GB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.3559, allocations: 0 / 0.4972 GB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3559, allocations: 3.938 kB / 0.4972 GB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.3559, allocations: 8 kB / 0.4972 GB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003769/0.3563, allocations: 342.4 kB / 0.4975 GB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.3564, allocations: 103.8 kB / 0.4976 GB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.213e-05/0.3565, allocations: 58.69 kB / 0.4977 GB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3566, allocations: 7.984 kB / 0.4977 GB, free: 1.738 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.3566, allocations: 38.56 kB / 0.4977 GB, free: 1.691 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3566, allocations: 0 / 0.4977 GB, free: 1.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002176/0.3568, allocations: 89.53 kB / 0.4978 GB, free: 1.598 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.3569, allocations: 110.8 kB / 0.4979 GB, free: 1.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.357, allocations: 125.2 kB / 0.498 GB, free: 1.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.357, allocations: 25.7 kB / 0.4981 GB, free: 1.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.3571, allocations: 88.33 kB / 0.4981 GB, free: 1.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.3571, allocations: 11.98 kB / 0.4981 GB, free: 1.195 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-06/0.3571, allocations: 0 / 0.4981 GB, free: 1.195 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3572, allocations: 318.9 kB / 0.4985 GB, free: 0.875 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.074e-05/0.3573, allocations: 8 kB / 0.4985 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.445e-05/0.3573, allocations: 81.38 kB / 0.4985 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.735e-05/0.3574, allocations: 19.94 kB / 0.4986 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3574, allocations: 7.953 kB / 0.4986 GB, free: 0.7266 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001356/0.3575, allocations: 97.39 kB / 0.4987 GB, free: 0.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3575, allocations: 8.781 kB / 0.4987 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3576, allocations: 0 / 0.4987 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3576, allocations: 4 kB / 0.4987 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-05/0.3576, allocations: 7.984 kB / 0.4987 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3576, allocations: 4 kB / 0.4987 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.478e-05/0.3577, allocations: 7.938 kB / 0.4987 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3577, allocations: 8.422 kB / 0.4987 GB, free: 0.5859 MB / 346.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 6.927e-05/0.3578, allocations: 116.9 kB / 0.4988 GB, free: 476 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.3579, allocations: 81.48 kB / 0.4989 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.358, allocations: 8.625 kB / 0.4989 GB, free: 376 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.358, allocations: 4 kB / 0.4989 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.358, allocations: 3.984 kB / 0.4989 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.358, allocations: 0 / 0.4989 GB, free: 368 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.3582, allocations: 154.2 kB / 0.499 GB, free: 176 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3582, allocations: 0 / 0.499 GB, free: 176 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.824e-05/0.3582, allocations: 12 kB / 0.4991 GB, free: 164 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.3582, allocations: 3.953 kB / 0.4991 GB, free: 160 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.3582, allocations: 4 kB / 0.4991 GB, free: 156 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.3583, allocations: 0 / 0.4991 GB, free: 156 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3583, allocations: 3.938 kB / 0.4991 GB, free: 152 kB / 346.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:7358:5-7358: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.0003425/0.3586, allocations: 347.7 kB / 0.4994 GB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.254e-05/0.3587, allocations: 100.9 kB / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.3587, allocations: 0 / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.772e-05/0.3588, allocations: 4 kB / 0.4995 GB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.3588, allocations: 4 kB / 0.4995 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.3589, allocations: 11.98 kB / 0.4995 GB, free: 15.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.46e-05/0.3589, allocations: 107.8 kB / 0.4996 GB, free: 15.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3589, allocations: 0 / 0.4996 GB, free: 15.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.3592, allocations: 8 kB / 0.4996 GB, free: 15.53 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 () * 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.0001033/0.3593, allocations: 99.19 kB / 0.4997 GB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.3594, allocations: 60.48 kB / 0.4998 GB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3594, allocations: 0 / 0.4998 GB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.488e-05/0.3595, allocations: 8.062 kB / 0.4998 GB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.3598, allocations: 55.59 kB / 0.4998 GB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002972/0.3601, allocations: 135.1 kB / 0.5 GB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.3604, allocations: 0.7118 MB / 0.5007 GB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.478e-05/0.3604, allocations: 12.48 kB / 0.5007 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.3604, allocations: 15.44 kB / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3605, allocations: 0 / 0.5007 GB, free: 14.38 MB / 362.7 MB Notification: Performance of Templates: time 0.002573/0.363, allocations: 0.6483 MB / 0.5013 GB, free: 13.73 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