Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 144.4 kB / 24.97 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9844/0.9844, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.936e-05, allocations: 6.312 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002092/0.002111, allocations: 1.647 MB / 269.7 MB, free: 5.066 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004147/0.002526, allocations: 171.3 kB / 269.9 MB, free: 4.898 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.002622, allocations: 3.938 kB / 269.9 MB, free: 4.895 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.583e-05/0.002678, allocations: 7.922 kB / 269.9 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.002806, allocations: 11.92 kB / 269.9 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.003021, allocations: 59.69 kB / 270 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.518e-05/0.003116, allocations: 59.84 kB / 270 MB, free: 4.758 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.003217, allocations: 28.14 kB / 270.1 MB, free: 4.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.29e-05/0.00327, allocations: 31.97 kB / 270.1 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.417e-05/0.003304, allocations: 23.91 kB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.003326, allocations: 4 kB / 270.1 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.188e-05/0.003338, allocations: 8 kB / 270.1 MB, free: 4.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.161e-05/0.00339, allocations: 19.92 kB / 270.1 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.675e-05/0.003417, allocations: 19.92 kB / 270.2 MB, free: 4.625 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000105/0.003522, allocations: 55.73 kB / 270.2 MB, free: 4.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.003523, allocations: 0 / 270.2 MB, free: 4.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.003524, allocations: 0 / 270.2 MB, free: 4.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.003528, allocations: 4 kB / 270.2 MB, free: 4.566 MB / 250.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.000366/0.003894, allocations: 416.2 kB / 270.6 MB, free: 4.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.003926, allocations: 12.03 kB / 270.6 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.003965, allocations: 16.84 kB / 270.7 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.004117, allocations: 151.4 kB / 270.8 MB, free: 3.922 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.004134, allocations: 384 / 270.8 MB, free: 3.922 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.004148, allocations: 12.38 kB / 270.8 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.004435, allocations: 193 kB / 271 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.004441, allocations: 192 / 271 MB, free: 3.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.004451, allocations: 4.375 kB / 271 MB, free: 3.688 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.004457, allocations: 384 / 271 MB, free: 3.688 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.363e-05/0.004501, allocations: 35.8 kB / 271 MB, free: 3.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000292/0.004793, allocations: 406.3 kB / 271.4 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.004915, allocations: 125.3 kB / 271.6 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.25e-05/0.004967, allocations: 51.11 kB / 271.6 MB, free: 2.988 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.004986, allocations: 8 kB / 271.6 MB, free: 2.98 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.005008, allocations: 41.33 kB / 271.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.82e-07/0.005009, allocations: 0 / 271.7 MB, free: 2.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001998/0.005209, allocations: 117.4 kB / 271.8 MB, free: 2.809 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.005262, allocations: 114.8 kB / 271.9 MB, free: 2.672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.005361, allocations: 189.9 kB / 272.1 MB, free: 2.469 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.005371, allocations: 25.7 kB / 272.1 MB, free: 2.438 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.00542, allocations: 139.1 kB / 272.2 MB, free: 2.293 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.846e-06/0.005429, allocations: 3.938 kB / 272.2 MB, free: 2.289 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.005457, allocations: 31.61 kB / 272.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.005559, allocations: 0.4884 MB / 272.8 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.729e-06/0.005569, allocations: 0 / 272.8 MB, free: 1.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.005585, allocations: 23.36 kB / 272.8 MB, free: 1.719 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.478e-05/0.00561, allocations: 23.31 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.005612, allocations: 0 / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.469e-05/0.005656, allocations: 49.59 kB / 272.9 MB, free: 1.633 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.005669, allocations: 7.938 kB / 272.9 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.005673, allocations: 4.125 kB / 272.9 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.005683, allocations: 0 / 272.9 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.095e-05/0.005694, allocations: 3.984 kB / 272.9 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.005699, allocations: 4 kB / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.462e-05/0.005724, allocations: 0 / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.005729, allocations: 4 kB / 272.9 MB, free: 1.609 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.262e-05/0.005792, allocations: 160.6 kB / 273 MB, free: 1.441 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/0.005868, allocations: 77.58 kB / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.005897, allocations: 20.72 kB / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.005899, allocations: 0 / 273.1 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.005904, allocations: 7.984 kB / 273.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.005909, allocations: 7.984 kB / 273.1 MB, free: 1.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.006041, allocations: 136.6 kB / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.006042, allocations: 0 / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-06/0.006049, allocations: 7.922 kB / 273.3 MB, free: 1.145 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.006051, allocations: 7.938 kB / 273.3 MB, free: 1.137 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.006057, allocations: 0 / 273.3 MB, free: 1.137 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.006059, allocations: 3.938 kB / 273.3 MB, free: 1.133 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.00606, allocations: 4 kB / 273.3 MB, free: 1.129 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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 hold1.y hold1.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) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.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) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020: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.0002583/0.006318, allocations: 422.2 kB / 273.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.006351, allocations: 23.88 kB / 273.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.006362, allocations: 0 / 273.7 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.753e-05/0.006419, allocations: 11.94 kB / 273.8 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.006451, allocations: 3.938 kB / 273.8 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.006455, allocations: 4 kB / 273.8 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.121e-05/0.006506, allocations: 143.2 kB / 273.9 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006506, allocations: 0 / 273.9 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001677/0.006674, allocations: 12 kB / 273.9 MB, free: 0.5 MB / 250.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 (step.y,hold1.y,sample1.y,hold1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.252e-05/0.006736, allocations: 99.25 kB / 274 MB, free: 404 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.191e-05/0.006818, allocations: 43.55 kB / 274 MB, free: 356 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.00682, allocations: 0 / 274 MB, free: 356 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.259e-05/0.006832, allocations: 11.69 kB / 274.1 MB, free: 340 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.007119, allocations: 42.77 kB / 274.1 MB, free: 300 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003044/0.007424, allocations: 215.2 kB / 274.3 MB, free: 40 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.065e-05/0.007484, allocations: 67.34 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.556e-05/0.0075, allocations: 4 kB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.005e-05/0.00753, allocations: 16.48 kB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.007531, allocations: 0 / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Templates: time 0.002247/0.009778, allocations: 0.7829 MB / 275.2 MB, free: 15.16 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.793920095078647]