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.0009978/0.0009978, allocations: 84 kB / 21.19 MB, free: 3.395 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.001142/0.001142, allocations: 145.1 kB / 24.54 MB, free: 44 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 0.988/0.988, allocations: 173.3 MB / 201.1 MB, free: 9.309 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.663e-06/1.663e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.866e-05/3.033e-05, allocations: 10.31 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002887/0.002918, allocations: 1.654 MB / 269.6 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003849/0.003302, allocations: 171.3 kB / 269.8 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.662e-05/0.003379, allocations: 4 kB / 269.8 MB, free: 4.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.106e-05/0.00343, allocations: 7.875 kB / 269.8 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.003562, allocations: 15.92 kB / 269.8 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.003812, allocations: 47.77 kB / 269.9 MB, free: 4.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.00393, allocations: 63.83 kB / 269.9 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.004035, allocations: 32.14 kB / 270 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.922e-05/0.004094, allocations: 35.91 kB / 270 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.409e-05/0.004128, allocations: 19.91 kB / 270 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.004153, allocations: 8 kB / 270 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.004165, allocations: 4 kB / 270 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.241e-05/0.004217, allocations: 15.92 kB / 270.1 MB, free: 4.324 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.957e-05/0.004247, allocations: 27.91 kB / 270.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.00437, allocations: 55.75 kB / 270.1 MB, free: 4.242 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.004372, allocations: 4 kB / 270.1 MB, free: 4.238 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.004373, allocations: 0 / 270.1 MB, free: 4.238 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.004378, allocations: 0 / 270.1 MB, free: 4.238 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.0004015/0.00478, allocations: 408.3 kB / 270.5 MB, free: 3.801 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.004815, allocations: 11.97 kB / 270.6 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.004863, allocations: 20.84 kB / 270.6 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.005028, allocations: 144.4 kB / 270.7 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.005047, allocations: 8.375 kB / 270.7 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.005058, allocations: 8.375 kB / 270.7 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003042/0.005363, allocations: 202.9 kB / 270.9 MB, free: 3.363 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.005372, allocations: 4.125 kB / 270.9 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.005381, allocations: 384 / 270.9 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.005391, allocations: 4.375 kB / 270.9 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.524e-05/0.005436, allocations: 27.92 kB / 271 MB, free: 3.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003353/0.005771, allocations: 410.3 kB / 271.4 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.005895, allocations: 125.2 kB / 271.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/0.005953, allocations: 55.17 kB / 271.5 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.005972, allocations: 4 kB / 271.6 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.005997, allocations: 41.33 kB / 271.6 MB, free: 2.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 9.72e-07/0.005998, allocations: 0 / 271.6 MB, free: 2.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.000217/0.006215, allocations: 117.3 kB / 271.7 MB, free: 2.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.00627, allocations: 110.8 kB / 271.8 MB, free: 2.348 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.006383, allocations: 193.9 kB / 272 MB, free: 2.141 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.006399, allocations: 37.95 kB / 272 MB, free: 2.098 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.006461, allocations: 135.1 kB / 272.2 MB, free: 1.957 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.006483, allocations: 3.938 kB / 272.2 MB, free: 1.953 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.006533, allocations: 31.36 kB / 272.2 MB, free: 1.914 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.006666, allocations: 492.1 kB / 272.7 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.313e-05/0.006679, allocations: 4 kB / 272.7 MB, free: 1.418 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.742e-05/0.006697, allocations: 19.38 kB / 272.7 MB, free: 1.391 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.234e-05/0.006729, allocations: 23.31 kB / 272.7 MB, free: 1.359 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.006732, allocations: 4 kB / 272.7 MB, free: 1.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.575e-05/0.006788, allocations: 53.64 kB / 272.8 MB, free: 1.297 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.006803, allocations: 7.938 kB / 272.8 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.006807, allocations: 0 / 272.8 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.00682, allocations: 4 kB / 272.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.239e-05/0.006832, allocations: 0 / 272.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.006838, allocations: 0 / 272.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.431e-05/0.006872, allocations: 4 kB / 272.8 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.006878, allocations: 0 / 272.8 MB, free: 1.281 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.983e-05/0.006948, allocations: 156.6 kB / 273 MB, free: 1.117 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.432e-05/0.007032, allocations: 85.64 kB / 273 MB, free: 1.027 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.26e-05/0.007065, allocations: 20.72 kB / 273.1 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.007068, allocations: 4 kB / 273.1 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.007071, allocations: 0 / 273.1 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.007074, allocations: 0 / 273.1 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.007207, allocations: 140.6 kB / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.007209, allocations: 0 / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.395e-06/0.007217, allocations: 4 kB / 273.2 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.00722, allocations: 0 / 273.2 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.007228, allocations: 4 kB / 273.2 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.007232, allocations: 11.86 kB / 273.2 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.007234, allocations: 7.938 kB / 273.2 MB, free: 0.8008 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.0002731/0.007507, allocations: 419.6 kB / 273.6 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.511e-05/0.007542, allocations: 19.88 kB / 273.7 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.007558, allocations: 11.98 kB / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.919e-05/0.007617, allocations: 3.938 kB / 273.7 MB, free: 340 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.694e-05/0.007644, allocations: 4 kB / 273.7 MB, free: 336 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-06/0.00765, allocations: 4 kB / 273.7 MB, free: 332 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.069e-05/0.007701, allocations: 153.5 kB / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007701, allocations: 0 / 273.8 MB, free: 180 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.00016/0.007861, allocations: 4 kB / 273.8 MB, free: 176 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 7.741e-05/0.007938, allocations: 107.2 kB / 273.9 MB, free: 60 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.224e-05/0.008031, allocations: 35.61 kB / 274 MB, free: 20 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.008032, allocations: 3.938 kB / 274 MB, free: 16 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-05/0.008045, allocations: 11.69 kB / 274 MB, free: 0 / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.008339, allocations: 51.06 kB / 274 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002985/0.008637, allocations: 207 kB / 274.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.366e-05/0.008681, allocations: 67.34 kB / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.362e-05/0.008695, allocations: 0 / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.008721, allocations: 16.44 kB / 274.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.008722, allocations: 0 / 274.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Templates: time 0.002503/0.01123, allocations: 0.8038 MB / 275.1 MB, free: 14.81 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.875417469535023]