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.000807/0.000807, allocations: 80.06 kB / 21.43 MB, free: 3.117 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.003189/0.003189, allocations: 142.3 kB / 24.68 MB, free: 8.926 MB / 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.8223/0.8223, allocations: 173.4 MB / 201.2 MB, free: 9.43 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.312e-06/1.312e-06, allocations: 0 / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.251e-05, allocations: 10.16 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001899/0.001922, allocations: 1.606 MB / 321.3 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003109/0.002232, allocations: 171.4 kB / 321.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.268e-05/0.002295, allocations: 0 / 321.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.967e-05/0.002335, allocations: 7.875 kB / 321.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.00244, allocations: 15.86 kB / 321.5 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.002617, allocations: 43.83 kB / 321.5 MB, free: 4 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.537e-05/0.002702, allocations: 67.81 kB / 321.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.915e-05/0.002781, allocations: 32.09 kB / 321.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.002823, allocations: 39.89 kB / 321.7 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.798e-05/0.002851, allocations: 23.92 kB / 321.7 MB, free: 3.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.002872, allocations: 4 kB / 321.7 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.997e-06/0.002881, allocations: 8 kB / 321.7 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.714e-05/0.002918, allocations: 19.91 kB / 321.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.127e-05/0.002939, allocations: 27.86 kB / 321.7 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.784e-05/0.003037, allocations: 67.77 kB / 321.8 MB, free: 3.715 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-06/0.003038, allocations: 0 / 321.8 MB, free: 3.715 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003039, allocations: 0 / 321.8 MB, free: 3.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.003042, allocations: 0 / 321.8 MB, free: 3.715 MB / 282.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.000302/0.003344, allocations: 317.2 kB / 322.1 MB, free: 3.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.003372, allocations: 8.031 kB / 322.1 MB, free: 3.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.0034, allocations: 20.84 kB / 322.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.003553, allocations: 137.6 kB / 322.3 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.00357, allocations: 4.375 kB / 322.3 MB, free: 3.184 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.00358, allocations: 8.375 kB / 322.3 MB, free: 3.176 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.003821, allocations: 192.9 kB / 322.5 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.003828, allocations: 192 / 322.5 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.003836, allocations: 8.312 kB / 322.5 MB, free: 2.961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.003841, allocations: 4.375 kB / 322.5 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.96e-05/0.003901, allocations: 43.86 kB / 322.5 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002379/0.004138, allocations: 297.6 kB / 322.8 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.004243, allocations: 107.9 kB / 322.9 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.398e-05/0.004297, allocations: 54.56 kB / 323 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.00432, allocations: 7.984 kB / 323 MB, free: 2.383 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/0.00434, allocations: 38.56 kB / 323 MB, free: 2.336 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 7.51e-07/0.004341, allocations: 0 / 323 MB, free: 2.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002062/0.004547, allocations: 141.4 kB / 323.2 MB, free: 2.191 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.004592, allocations: 106.8 kB / 323.3 MB, free: 2.062 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.541e-05/0.004668, allocations: 141.8 kB / 323.4 MB, free: 1.914 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.004677, allocations: 25.7 kB / 323.4 MB, free: 1.883 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.004711, allocations: 92.36 kB / 323.5 MB, free: 1.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.177e-06/0.00472, allocations: 7.891 kB / 323.5 MB, free: 1.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.004744, allocations: 25.64 kB / 323.6 MB, free: 1.746 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.004807, allocations: 318.8 kB / 323.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.436e-05/0.004821, allocations: 4.25 kB / 323.9 MB, free: 1.422 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.596e-05/0.004837, allocations: 21.7 kB / 323.9 MB, free: 1.395 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.965e-05/0.004867, allocations: 21.72 kB / 323.9 MB, free: 1.367 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.004868, allocations: 0 / 323.9 MB, free: 1.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.792e-05/0.004916, allocations: 53.58 kB / 324 MB, free: 1.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.004926, allocations: 12.31 kB / 324 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.00493, allocations: 0 / 324 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.004939, allocations: 128 / 324 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.794e-06/0.004947, allocations: 4 kB / 324 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.004953, allocations: 11.92 kB / 324 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.341e-05/0.004966, allocations: 0 / 324 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-06/0.00497, allocations: 0 / 324 MB, free: 1.281 MB / 282.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 5.537e-05/0.005025, allocations: 121.8 kB / 324.1 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.005106, allocations: 85.52 kB / 324.2 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.005131, allocations: 20.77 kB / 324.2 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.005133, allocations: 0 / 324.2 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.005137, allocations: 0 / 324.2 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.005141, allocations: 4 kB / 324.2 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.005258, allocations: 129.2 kB / 324.4 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.00526, allocations: 4 kB / 324.4 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.713e-06/0.005267, allocations: 3.938 kB / 324.4 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.005269, allocations: 4 kB / 324.4 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.005275, allocations: 3.938 kB / 324.4 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.005277, allocations: 4 kB / 324.4 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.005277, allocations: 0 / 324.4 MB, free: 0.8594 MB / 282.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: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.000208/0.005485, allocations: 348.4 kB / 324.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.005517, allocations: 23.88 kB / 324.7 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.005527, allocations: 3.984 kB / 324.7 MB, free: 480 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.216e-05/0.005579, allocations: 7.938 kB / 324.8 MB, free: 472 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.122e-05/0.005601, allocations: 4 kB / 324.8 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-06/0.005605, allocations: 4 kB / 324.8 MB, free: 464 kB / 282.7 MB Notification: Performance of sorting global known variables: time 4.272e-05/0.005648, allocations: 109.9 kB / 324.9 MB, free: 356 kB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005648, allocations: 0 / 324.9 MB, free: 356 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001605/0.005808, allocations: 8 kB / 324.9 MB, free: 348 kB / 282.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.0003098/0.006118, allocations: 106 kB / 325 MB, free: 236 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.943e-05/0.006208, allocations: 43.92 kB / 325 MB, free: 192 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.006209, allocations: 0 / 325 MB, free: 192 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.445e-05/0.006224, allocations: 4 kB / 325 MB, free: 188 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.006497, allocations: 59.97 kB / 325.1 MB, free: 128 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002778/0.006775, allocations: 241.1 kB / 325.3 MB, free: 15.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.041e-05/0.006835, allocations: 99.52 kB / 325.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.196e-05/0.006857, allocations: 8.5 kB / 325.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.006858, allocations: 4 kB / 325.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of Templates: time 0.00148/0.008338, allocations: 0.9106 MB / 326.3 MB, free: 14.81 MB / 298.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=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: 3.852732582949102]