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.001341/0.001341, allocations: 81.5 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001416/0.001416, allocations: 151.2 kB / 23.94 MB, free: 4.164 MB / 14.72 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.425/1.425, allocations: 173.4 MB / 200.4 MB, free: 12.83 MB / 190.1 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.853e-06/1.853e-06, allocations: 0 / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.866e-05, allocations: 6.656 kB / 318.9 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002466/0.002495, allocations: 1.597 MB / 320.5 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004213/0.002916, allocations: 169.6 kB / 320.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.002995, allocations: 2.125 kB / 320.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.428e-05/0.00305, allocations: 9.281 kB / 320.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.003184, allocations: 16.09 kB / 320.7 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.003454, allocations: 51.36 kB / 320.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.003586, allocations: 60.78 kB / 320.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.003712, allocations: 37.17 kB / 320.9 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.528e-05/0.003787, allocations: 34.67 kB / 320.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.77e-05/0.003835, allocations: 22.53 kB / 320.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.003865, allocations: 5.469 kB / 320.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.564e-05/0.003881, allocations: 10.12 kB / 320.9 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.895e-05/0.00394, allocations: 23.92 kB / 321 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.018e-05/0.00397, allocations: 18.64 kB / 321 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.00412, allocations: 76.88 kB / 321.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.004122, allocations: 3.938 kB / 321.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004123, allocations: 0 / 321.1 MB, free: 2.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.004128, allocations: 0.8125 kB / 321.1 MB, free: 2.156 MB / 286.1 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.0004347/0.004563, allocations: 312.6 kB / 321.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.004604, allocations: 9.75 kB / 321.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.004645, allocations: 14.22 kB / 321.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.004851, allocations: 141.2 kB / 321.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.004875, allocations: 6.875 kB / 321.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.004909, allocations: 6.234 kB / 321.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.005283, allocations: 188.5 kB / 321.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.005295, allocations: 2.047 kB / 321.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.005307, allocations: 5.531 kB / 321.7 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.005312, allocations: 5.594 kB / 321.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.005414, allocations: 45.62 kB / 321.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003038/0.005718, allocations: 309.3 kB / 322.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.005875, allocations: 102.6 kB / 322.2 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.595e-05/0.005961, allocations: 58.34 kB / 322.2 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.005987, allocations: 3.719 kB / 322.2 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.364e-05/0.006001, allocations: 33.44 kB / 322.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.006002, allocations: 0 / 322.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003228/0.006325, allocations: 140.4 kB / 322.4 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.006367, allocations: 115.2 kB / 322.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.006468, allocations: 144.9 kB / 322.7 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.006477, allocations: 25.7 kB / 322.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.989e-05/0.006507, allocations: 87.73 kB / 322.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/0.006518, allocations: 9.922 kB / 322.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.229e-05/0.00655, allocations: 25.39 kB / 322.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.006592, allocations: 315.3 kB / 323.1 MB, free: 284 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.037e-05/0.006622, allocations: 8.047 kB / 323.1 MB, free: 280 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.688e-05/0.006649, allocations: 20.3 kB / 323.1 MB, free: 260 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.066e-05/0.0067, allocations: 24.03 kB / 323.2 MB, free: 240 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.006701, allocations: 0 / 323.2 MB, free: 240 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.566e-05/0.006787, allocations: 58.95 kB / 323.2 MB, free: 192 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.0068, allocations: 8.812 kB / 323.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.006805, allocations: 1.719 kB / 323.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.006819, allocations: 0 / 323.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.079e-05/0.00683, allocations: 1.984 kB / 323.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.006834, allocations: 5.219 kB / 323.2 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.871e-05/0.006863, allocations: 2.734 kB / 323.2 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.006869, allocations: 1.188 kB / 323.2 MB, free: 184 kB / 286.1 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 5.8e-05/0.006927, allocations: 122 kB / 323.4 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.007056, allocations: 84.95 kB / 323.4 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.174e-05/0.007118, allocations: 17.8 kB / 323.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.007121, allocations: 2.406 kB / 323.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.007126, allocations: 1.062 kB / 323.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.007131, allocations: 1.75 kB / 323.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002201/0.007351, allocations: 119.3 kB / 323.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.007353, allocations: 5.062 kB / 323.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.164e-05/0.007374, allocations: 11.09 kB / 323.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.007377, allocations: 1.156 kB / 323.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.007389, allocations: 7.078 kB / 323.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.007391, allocations: 1.312 kB / 323.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.007393, allocations: 0.6094 kB / 323.6 MB, free: 15.84 MB / 302.1 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:7979:5-7979: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.0004098/0.007803, allocations: 350.1 kB / 324 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.041e-05/0.007853, allocations: 24.05 kB / 324 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.007877, allocations: 11.11 kB / 324 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.007979, allocations: 7.094 kB / 324 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.008016, allocations: 2.312 kB / 324 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-06/0.008023, allocations: 6.562 kB / 324 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.81e-05/0.008111, allocations: 112.8 kB / 324.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.008111, allocations: 0 / 324.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.008381, allocations: 11.25 kB / 324.1 MB, free: 15.46 MB / 302.1 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.0001082/0.008489, allocations: 101.2 kB / 324.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.008648, allocations: 43.77 kB / 324.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.00865, allocations: 1.062 kB / 324.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.373e-05/0.008684, allocations: 10.25 kB / 324.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.009114, allocations: 49.44 kB / 324.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.009514, allocations: 214.2 kB / 324.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.009617, allocations: 90.17 kB / 324.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.82e-05/0.009636, allocations: 2.406 kB / 324.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.014e-05/0.009666, allocations: 12 kB / 324.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.009666, allocations: 0 / 324.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Templates: time 0.003377/0.01304, allocations: 0.7461 MB / 325.4 MB, free: 14.97 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] 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.184859499335289]