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.002543/0.002543, allocations: 99.86 kB / 20.96 MB, free: 3.461 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.002828/0.002828, allocations: 149.5 kB / 24.26 MB, free: 168 kB / 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 1.565/1.565, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 178] 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.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.369e-05/3.538e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003459/0.003494, allocations: 1.624 MB / 268.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004854/0.003979, allocations: 179.3 kB / 269.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.013e-05/0.00405, allocations: 0 / 269.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.059e-05/0.00411, allocations: 7.875 kB / 269.1 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.004239, allocations: 15.86 kB / 269.1 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.004488, allocations: 43.83 kB / 269.2 MB, free: 4.844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.00462, allocations: 67.69 kB / 269.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.004731, allocations: 28.16 kB / 269.3 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.137e-05/0.004802, allocations: 35.91 kB / 269.3 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.497e-05/0.004847, allocations: 23.91 kB / 269.3 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.004872, allocations: 8 kB / 269.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.804e-05/0.00489, allocations: 8 kB / 269.3 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.977e-05/0.00494, allocations: 19.92 kB / 269.4 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.004976, allocations: 19.92 kB / 269.4 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.005128, allocations: 79.62 kB / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.005131, allocations: 0 / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.005132, allocations: 0 / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.005136, allocations: 0 / 269.5 MB, free: 4.559 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.0005728/0.005709, allocations: 415.9 kB / 269.9 MB, free: 4.113 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.005741, allocations: 11.97 kB / 269.9 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.0058, allocations: 24.84 kB / 269.9 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.006025, allocations: 147.3 kB / 270 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.006047, allocations: 4.375 kB / 270 MB, free: 3.906 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.006065, allocations: 8.375 kB / 270.1 MB, free: 3.898 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.00655, allocations: 200.4 kB / 270.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.006562, allocations: 192 / 270.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.006577, allocations: 4.375 kB / 270.3 MB, free: 3.672 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.006588, allocations: 12.36 kB / 270.3 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.006713, allocations: 43.86 kB / 270.3 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005775/0.007291, allocations: 410.3 kB / 270.7 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.007529, allocations: 141.3 kB / 270.9 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.00765, allocations: 63.11 kB / 270.9 MB, free: 2.922 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.007675, allocations: 4 kB / 270.9 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.007712, allocations: 41.38 kB / 271 MB, free: 2.867 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.007714, allocations: 0 / 271 MB, free: 2.867 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004202/0.008134, allocations: 149.6 kB / 271.1 MB, free: 2.715 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.008235, allocations: 114.8 kB / 271.2 MB, free: 2.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.008423, allocations: 205.9 kB / 271.4 MB, free: 2.359 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.008451, allocations: 29.7 kB / 271.4 MB, free: 2.324 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.303e-05/0.008544, allocations: 135.1 kB / 271.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.008559, allocations: 7.953 kB / 271.6 MB, free: 2.176 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.008615, allocations: 35.36 kB / 271.6 MB, free: 2.133 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002659/0.008881, allocations: 492.1 kB / 272.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.589e-05/0.008917, allocations: 8 kB / 272.1 MB, free: 1.633 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.306e-05/0.00896, allocations: 27.61 kB / 272.1 MB, free: 1.598 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.079e-05/0.009041, allocations: 31.38 kB / 272.2 MB, free: 1.559 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.009042, allocations: 0 / 272.2 MB, free: 1.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000108/0.00915, allocations: 53.58 kB / 272.2 MB, free: 1.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.009171, allocations: 15.88 kB / 272.2 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.009176, allocations: 0 / 272.2 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.009191, allocations: 0 / 272.2 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.209e-05/0.009203, allocations: 4.125 kB / 272.2 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.009207, allocations: 0 / 272.2 MB, free: 1.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.437e-05/0.009241, allocations: 15.86 kB / 272.3 MB, free: 1.465 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.009248, allocations: 0 / 272.3 MB, free: 1.465 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 0.0001255/0.009373, allocations: 160.6 kB / 272.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.009536, allocations: 89.58 kB / 272.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.009586, allocations: 16.72 kB / 272.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.009588, allocations: 0 / 272.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.009594, allocations: 4 kB / 272.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.0096, allocations: 3.984 kB / 272.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.00983, allocations: 136.6 kB / 272.7 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.009834, allocations: 12 kB / 272.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.39e-05/0.009848, allocations: 0 / 272.7 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.009853, allocations: 4 kB / 272.7 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.009871, allocations: 7.984 kB / 272.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.009875, allocations: 3.938 kB / 272.7 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.009878, allocations: 4 kB / 272.7 MB, free: 0.9766 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:8001:5-8001: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.0004951/0.01037, allocations: 438 kB / 273.1 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.01042, allocations: 23.94 kB / 273.1 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/0.01044, allocations: 4 kB / 273.1 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.519e-05/0.01054, allocations: 7.938 kB / 273.1 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.01057, allocations: 7.984 kB / 273.2 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.01058, allocations: 0 / 273.2 MB, free: 496 kB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.01069, allocations: 147.2 kB / 273.3 MB, free: 348 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01069, allocations: 0 / 273.3 MB, free: 348 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.01094, allocations: 8 kB / 273.3 MB, free: 340 kB / 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 0.0001261/0.01107, allocations: 114.8 kB / 273.4 MB, free: 220 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.01123, allocations: 43.67 kB / 273.5 MB, free: 172 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01123, allocations: 0 / 273.5 MB, free: 172 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.778e-05/0.01128, allocations: 23.61 kB / 273.5 MB, free: 144 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.01169, allocations: 54.42 kB / 273.5 MB, free: 96 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004503/0.01214, allocations: 227 kB / 273.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.01225, allocations: 87.53 kB / 273.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.202e-05/0.01228, allocations: 7.984 kB / 273.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.01231, allocations: 8.5 kB / 273.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01231, allocations: 0 / 273.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of Templates: time 0.003613/0.01592, allocations: 0.7772 MB / 274.6 MB, free: 14.94 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.361801738035865]