Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009976/0.0009976, allocations: 67.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 160.9 kB / 24.99 MB, free: 9.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.08/1.08, allocations: 177.1 MB / 205.3 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.939e-06/4.939e-06, allocations: 3.984 kB / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.598e-05/4.092e-05, allocations: 2.312 kB / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003423/0.003464, allocations: 1.661 MB / 274.7 MB, free: 136 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00053/0.003994, allocations: 179.3 kB / 274.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.004107, allocations: 4 kB / 274.9 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.453e-05/0.004171, allocations: 7.875 kB / 274.9 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.004329, allocations: 3.938 kB / 274.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.004589, allocations: 51.81 kB / 275 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.004708, allocations: 59.84 kB / 275 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.004836, allocations: 36.08 kB / 275.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.424e-05/0.0049, allocations: 31.91 kB / 275.1 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.464e-05/0.004945, allocations: 27.89 kB / 275.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.004972, allocations: 8 kB / 275.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.147e-05/0.004983, allocations: 4 kB / 275.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.785e-05/0.005041, allocations: 19.92 kB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.347e-05/0.005074, allocations: 23.91 kB / 275.2 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.005202, allocations: 55.75 kB / 275.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.005205, allocations: 4 kB / 275.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.005207, allocations: 0 / 275.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.005212, allocations: 0 / 275.2 MB, free: 15.62 MB / 266.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.0004359/0.005648, allocations: 408.2 kB / 275.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.00569, allocations: 12.03 kB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.005742, allocations: 20.88 kB / 275.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.005947, allocations: 150.9 kB / 275.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.005971, allocations: 4.375 kB / 275.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.00599, allocations: 8.375 kB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.006344, allocations: 188.9 kB / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.006353, allocations: 192 / 276 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.006363, allocations: 4.375 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.006373, allocations: 4.375 kB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.718e-05/0.00642, allocations: 31.86 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000332/0.006752, allocations: 410.3 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.006876, allocations: 121.2 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.716e-05/0.006933, allocations: 51.17 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.00696, allocations: 7.984 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.006984, allocations: 45.33 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.006985, allocations: 4 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002161/0.007201, allocations: 105.5 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.00726, allocations: 114.8 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.007365, allocations: 196.4 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.007377, allocations: 29.7 kB / 277.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.007428, allocations: 139.1 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.007437, allocations: 3.938 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.007469, allocations: 31.33 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.00758, allocations: 0.4884 MB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.135e-05/0.007591, allocations: 4.25 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.588e-05/0.007607, allocations: 19.38 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.147e-05/0.007638, allocations: 31.31 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.00764, allocations: 4 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.639e-05/0.007686, allocations: 37.69 kB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.0077, allocations: 7.938 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.007706, allocations: 4 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.007717, allocations: 0 / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-05/0.007729, allocations: 4.062 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.007734, allocations: 4 kB / 277.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.741e-05/0.007761, allocations: 4 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.007767, allocations: 3.984 kB / 277.9 MB, free: 12.67 MB / 266.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.0003831/0.00815, allocations: 160.6 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.008233, allocations: 73.95 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.002e-05/0.008273, allocations: 24.7 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.008276, allocations: 4 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.00828, allocations: 0 / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.008284, allocations: 0 / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.008428, allocations: 136.6 kB / 278.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.00843, allocations: 4 kB / 278.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-06/0.008438, allocations: 4 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.008439, allocations: 0 / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.00845, allocations: 8 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.008453, allocations: 7.875 kB / 278.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.008454, allocations: 0 / 278.3 MB, free: 12.2 MB / 266.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.0002731/0.008727, allocations: 427.7 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.008758, allocations: 23.88 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.008769, allocations: 4 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.741e-05/0.008826, allocations: 7.938 kB / 278.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.00887, allocations: 7.984 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.008876, allocations: 4 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.284e-05/0.008929, allocations: 139.2 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008929, allocations: 0 / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001623/0.009091, allocations: 11.95 kB / 278.9 MB, free: 11.56 MB / 266.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 7.892e-05/0.00917, allocations: 107.2 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.635e-05/0.009267, allocations: 35.61 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.009268, allocations: 3.938 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.387e-05/0.009282, allocations: 11.69 kB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.00959, allocations: 54.02 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003279/0.009918, allocations: 213.8 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.974e-05/0.009968, allocations: 75.23 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.559e-05/0.009983, allocations: 256 / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.01002, allocations: 20.5 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01002, allocations: 0 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of Templates: time 0.002572/0.01259, allocations: 0.7651 MB / 280.2 MB, free: 10.23 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.925225082086399]