Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001108/0.001108, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 160.9 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.02/1.02, allocations: 177 MB / 205.2 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.385e-05, allocations: 2.312 kB / 273 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002179/0.002203, allocations: 1.66 MB / 274.7 MB, free: 104 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003869/0.00259, allocations: 175.3 kB / 274.8 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.002669, allocations: 7.938 kB / 274.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.493e-05/0.002714, allocations: 3.938 kB / 274.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.002828, allocations: 15.8 kB / 274.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.003033, allocations: 51.83 kB / 274.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.003135, allocations: 59.84 kB / 275 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.792e-05/0.003233, allocations: 28.14 kB / 275 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.154e-05/0.003285, allocations: 31.91 kB / 275 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.408e-05/0.003319, allocations: 23.89 kB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.003341, allocations: 12 kB / 275.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.009e-05/0.003351, allocations: 4 kB / 275.1 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.003396, allocations: 23.92 kB / 275.1 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.414e-05/0.00342, allocations: 15.92 kB / 275.1 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.003535, allocations: 63.73 kB / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003537, allocations: 0 / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.003538, allocations: 0 / 275.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.003542, allocations: 0 / 275.2 MB, free: 15.59 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.0003628/0.003905, allocations: 408.2 kB / 275.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.00394, allocations: 15.98 kB / 275.6 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.003984, allocations: 20.88 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.004148, allocations: 151.2 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.004168, allocations: 4.375 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.004179, allocations: 12.31 kB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.004461, allocations: 189.2 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.465e-06/0.004468, allocations: 192 / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.004478, allocations: 4.375 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.004486, allocations: 4.375 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.619e-05/0.004532, allocations: 31.86 kB / 276 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002982/0.00483, allocations: 406.4 kB / 276.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.004948, allocations: 121.2 kB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.358e-05/0.005012, allocations: 59.17 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.00503, allocations: 3.984 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.005052, allocations: 41.39 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.005053, allocations: 0 / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002186/0.005272, allocations: 117.4 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.005322, allocations: 110.8 kB / 276.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.744e-05/0.00542, allocations: 197.1 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.005429, allocations: 25.7 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.069e-05/0.005509, allocations: 135.1 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.062e-05/0.00552, allocations: 11.92 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.005552, allocations: 27.33 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.005652, allocations: 0.4923 MB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.959e-06/0.005662, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.67e-05/0.005679, allocations: 23.56 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.693e-05/0.005706, allocations: 27.44 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.005707, allocations: 0 / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.831e-05/0.005756, allocations: 41.62 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.005769, allocations: 11.94 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.005773, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.005783, allocations: 3.938 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-05/0.005793, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.005798, allocations: 0 / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.805e-05/0.005826, allocations: 8.062 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.00583, allocations: 0 / 277.8 MB, free: 12.63 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 6.468e-05/0.005895, allocations: 160.6 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.00604, allocations: 77.58 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.006071, allocations: 20.7 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.006074, allocations: 4 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.006077, allocations: 0 / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.00608, allocations: 0 / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.006213, allocations: 136.6 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.006215, allocations: 4 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.566e-06/0.006223, allocations: 7.938 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.006226, allocations: 4 kB / 278.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.006233, allocations: 4 kB / 278.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.006235, allocations: 3.938 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.00624, allocations: 8 kB / 278.2 MB, free: 12.16 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.0002395/0.006479, allocations: 420.4 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.006514, allocations: 27.86 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.006525, allocations: 0 / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.102e-05/0.006586, allocations: 19.92 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.437e-05/0.00661, allocations: 0 / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.006615, allocations: 4 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.006662, allocations: 139.2 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006662, allocations: 0 / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000173/0.006835, allocations: 15.95 kB / 278.8 MB, free: 11.52 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.464e-05/0.006909, allocations: 95.25 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.583e-05/0.006995, allocations: 39.61 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.006997, allocations: 0 / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.372e-05/0.00701, allocations: 11.69 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.007306, allocations: 50.75 kB / 279 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.007592, allocations: 215 kB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.371e-05/0.007645, allocations: 71.33 kB / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.439e-05/0.00766, allocations: 0 / 279.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.618e-05/0.007686, allocations: 16.5 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.007687, allocations: 4.25 kB / 279.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Templates: time 0.00243/0.01012, allocations: 0.7659 MB / 280.1 MB, free: 10.2 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.736131814075634]